-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_handled_outbox_
github-actions[bot] edited this page Mar 12, 2026
·
1 revision
Fires when an activity has been added to the outbox.
Handlers can implement side effects like creating WordPress posts.
/**
* Fires when an activity has been added to the outbox.
*
* Handlers can implement side effects like creating WordPress posts.
*
* @param array $data
* @param int $user_id
* @param Activitypub\Activity $activity
* @param int $outbox_id
*/
function my_activitypub_handled_outbox__callback( array $data, int $user_id, Activitypub\Activity $activity, int $outbox_id ) {
// Your code here.
}
add_action( 'activitypub_handled_outbox_', 'my_activitypub_handled_outbox__callback', 10, 4 );-
array$dataThe activity data array. -
int$user_idThe user ID. -
Activitypub\Activity$activityThe Activity object. -
int$outbox_idThe outbox post ID.
\do_action( 'activitypub_handled_outbox_' . \strtolower( $type ), $data, $user_id, $activity, $outbox_id )Follow @activitypub.blog@activitypub.blog for updates and news.