Skip to content

activitypub_handled_inbox

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

Fires after an inbox item has been handled.

Auto-generated Example

/**
 * Fires after an inbox item has been handled.
 *
 * @param array                          $data 
 * @param int                            $user_id 
 * @param WP_Error|int                   $id 
 * @param Activitypub\Activity|\WP_Error $activity 
 * @return array The filtered value.
 */
function my_activitypub_handled_inbox_callback( array $data, int $user_id, WP_Error|int $id, Activitypub\Activity|\WP_Error $activity ) {
    // Your code here.
    return $data;
}
add_filter( 'activitypub_handled_inbox', 'my_activitypub_handled_inbox_callback', 10, 4 );

Parameters

  • array $data The data array.
  • int $user_id The ID of the local blog user.
  • WP_Error|int $id The ID of the inbox item.
  • Activitypub\Activity|\WP_Error $activity The Activity object.

Files

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

← All Hooks

Users

Developers

Clone this wiki locally