Skip to content

activitypub_handled_inbox

github-actions[bot] edited this page Sep 24, 2025 · 6 revisions

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 int          $user_id 
 * @param bool         $success 
 * @param WP_Error|int $id 
 * @return array The filtered value.
 */
function my_activitypub_handled_inbox_callback( array $data, int $user_id, bool $success, WP_Error|int $id ) {
    // Your code here.
    return $data;
}
add_filter( 'activitypub_handled_inbox', 'my_activitypub_handled_inbox_callback', 10, 4 );

Parameters

  • array $data The ActivityPub activity data.
  • int $user_id The local user ID.
  • bool $success True on success, false otherwise.
  • WP_Error|int $id The ID of the inbox item that was created, or WP_Error if failed.

Files

\do_action( 'activitypub_handled_inbox', $data, $user_id, $success, $id )

← All Hooks

Users

Developers

Clone this wiki locally