-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_handled_inbox
github-actions[bot] edited this page Oct 24, 2025
·
8 revisions
Fires after an ActivityPub Inbox activity has been handled.
/**
* Fires after an ActivityPub Inbox activity has been handled.
*
* @param array $data
* @param array $user_ids
* @param string $type
* @param Activitypub\Activity|\WP_Error $activity
* @param WP_Error|int $result
* @param mixed $string_context_the_context_of_the_request
* @return array The filtered value.
*/
function my_activitypub_handled_inbox_callback( array $data, array $user_ids, string $type, Activitypub\Activity|\WP_Error $activity, WP_Error|int $result, $string_context_the_context_of_the_request ) {
// Your code here.
return $data;
}
add_filter( '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|\WP_Error$activityThe Activity object. -
WP_Error|int$resultThe ID of the inbox item that was created, or WP_Error if failed. -
$string_context_the_context_of_the_requestOther variable names:$context
\do_action( 'activitypub_handled_inbox', $data, $user_ids, $type, $activity, $result, $context )Follow @[email protected] for updates and news.