-
Notifications
You must be signed in to change notification settings - Fork 83
post_activitypub_add_to_outbox
github-actions[bot] edited this page Jul 23, 2025
·
27 revisions
Action triggered after an object has been added to the outbox.
add_filter(
'post_activitypub_add_to_outbox',
function (
int $outbox_activity_id,
Activitypub\Activity $activity,
int $user_id,
string $content_visibility
) {
// Your code here
return $outbox_activity_id;
},
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.