-
Notifications
You must be signed in to change notification settings - Fork 84
activitypub_handled_inbox_
github-actions[bot] edited this page Oct 24, 2025
·
2 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 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, 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, 5 );-
array$dataThe data array. -
array$user_idsThe user IDs. -
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_' . $type, $data, $user_ids, $activity, $result, $context )Follow @[email protected] for updates and news.