-
Notifications
You must be signed in to change notification settings - Fork 85
post_activitypub_add_to_outbox
github-actions[bot] edited this page Oct 21, 2025
·
24 revisions
Action triggered after an object has been added to the outbox.
/**
* Action triggered after an object has been added to the outbox.
*
* @param int $outbox_activity_id
* @param Activitypub\Activity $activity
* @param int $user_id
* @param string $content_visibility
* @return int The filtered value.
*/
function my_post_activitypub_add_to_outbox_callback( int $outbox_activity_id, Activitypub\Activity $activity, int $user_id, string $content_visibility ) {
// Your code here.
return $outbox_activity_id;
}
add_filter( 'post_activitypub_add_to_outbox', 'my_post_activitypub_add_to_outbox_callback', 10, 4 );-
int$outbox_activity_idThe ID of the outbox item. -
Activitypub\Activity$activityThe activity object. -
int$user_idThe User-ID. -
string$content_visibilityThe visibility of the content. Seeconstants.phpfor possible values:ACTIVITYPUB_CONTENT_VISIBILITY_*.
\do_action( 'post_activitypub_add_to_outbox', $outbox_activity_id, $activity, $user_id, $content_visibility )Follow @[email protected] for updates and news.