-
Notifications
You must be signed in to change notification settings - Fork 86
activitypub_handled_inbox
github-actions[bot] edited this page Apr 24, 2026
·
34 revisions
Fires after any ActivityPub Inbox activity has been handled, regardless of activity type.
This hook is triggered for all activity types processed by the inbox handler.
/**
* Fires after any ActivityPub Inbox activity has been handled, regardless of activity type.
*
* This hook is triggered for all activity types processed by the inbox handler.
*
* @param array $data
* @param array $user_ids
* @param string $type
* @param Activitypub\Activity $activity
* @param int $result
* @param mixed $Inbox::CONTEXT_INBOX
*/
function my_activitypub_handled_inbox_callback( array $data, array $user_ids, string $type, Activitypub\Activity $activity, int $result, Inbox::CONTEXT_INBOX ) {
// Your code here.
}
add_action( 'activitypub_handled_inbox', 'my_activitypub_handled_inbox_callback', 10, 6 );-
array$dataThe data array. -
array$user_idsThe user IDs. -
string$typeThe type of the activity. -
Activitypub\Activity$activityThe Activity object. -
int$resultThe ID of the inbox item that was created, or WP_Error if failed. -
Inbox::CONTEXT_INBOXOther variable names:$string_context_the_context_of_the_request,Inbox::CONTEXT_SHARED_INBOX,$context
\do_action( 'activitypub_handled_inbox', $activity_data, $user_ids, $type, $activity, $post_id, Inbox::CONTEXT_INBOX )\do_action( 'activitypub_handled_inbox', $data, $allowed_recipients, $type, $activity, $result, Inbox::CONTEXT_SHARED_INBOX )\do_action( 'activitypub_handled_inbox', $data, $user_ids, $type, $activity, $inbox_item->ID, $context )\do_action( 'activitypub_handled_inbox', $data, $user_ids, $type, $activity, $inbox_item->ID, $context )Follow @activitypub.blog@activitypub.blog for updates and news.