-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_inbox_{$type}
github-actions[bot] edited this page Nov 19, 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 Inbox::CONTEXT_INBOX $
*/
function my_activitypub_handled_inbox_{$type}_callback( array $data = null, array $user_ids = null, Activitypub\Activity|\WP_Error $activity = null, WP_Error|int $result = null, Inbox::CONTEXT_INBOX = null ) {
// Your code here.
}
add_action( 'activitypub_handled_inbox_*', 'my_activitypub_handled_inbox_{$type}_callback' );-
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. -
Inbox::CONTEXT_INBOXOther variable names:$string_context_the_context_of_the_request,$context,Inbox::CONTEXT_SHARED_INBOX
\do_action( 'activitypub_handled_inbox_' . $type, $activity_data, $user_ids, $activity, $post_id, Inbox::CONTEXT_INBOX )\do_action( 'activitypub_handled_inbox_' . $type, $data, $user_ids, $activity, $inbox_item->ID, $context )\do_action( 'activitypub_handled_inbox_' . $type, $data, $user_ids, $activity, $inbox_item->ID, $context )\do_action( 'activitypub_handled_inbox_' . $type, $data, $allowed_recipients, $activity, $result, Inbox::CONTEXT_SHARED_INBOX )Follow @[email protected] for updates and news.