Skip to content

activitypub_handled_inbox_{$type}

github-actions[bot] edited this page Nov 14, 2025 · 1 revision

Fires after an ActivityPub Inbox activity has been handled.

Auto-generated Example

/**
 * 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 $string_context_the_context_of_the_request $ 
 */
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, $string_context_the_context_of_the_request = null ) {
    // Your code here.
}
add_action( 'activitypub_handled_inbox_*', 'my_activitypub_handled_inbox_{$type}_callback' );

Parameters

  • array $data The data array.
  • array $user_ids The user IDs.
  • Activitypub\Activity|\WP_Error $activity The Activity object.
  • WP_Error|int $result The ID of the inbox item that was created, or WP_Error if failed.
  • $string_context_the_context_of_the_request Other variable names: $context, Inbox::CONTEXT_SHARED_INBOX

Files

\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 )

← All Hooks

Users

Developers

Clone this wiki locally