Skip to content

activitypub_inbox

github-actions[bot] edited this page Oct 30, 2025 · 27 revisions

Fires after an Announce has been received.

Auto-generated Example

/**
 * Fires after an Announce has been received.
 *
 * @param array                         $object 
 * @param Activitypub\int[]             $user_ids 
 * @param string                        $type 
 * @param Activitypub\Activity\Activity $activity 
 * @param string                        $context 
 * @return array The filtered value.
 */
function my_activitypub_inbox_callback( array $object, Activitypub\int[] $user_ids, string $type, Activitypub\Activity\Activity $activity = null, string $context = null ) {
    // Your code here.
    return $object;
}
add_filter( 'activitypub_inbox', 'my_activitypub_inbox_callback', 10, 4 );

Parameters

  • array $object The object.
  • Activitypub\int[] $user_ids The ids of the local blog-users.
  • string $type The type of the activity.
  • Activitypub\Activity\Activity|null $activity The activity object.
  • string $context The context of the request (shared_inbox when called from shared inbox endpoint).

Files

\do_action( 'activitypub_inbox', $data, $user_id, $type, $activity, Inbox::CONTEXT_INBOX )
\do_action( 'activitypub_inbox', $data, $user_id, $type, $activity, Inbox::CONTEXT_SHARED_INBOX )
\do_action( 'activitypub_inbox', $object, (array) $user_ids, $type, $activity )

← All Hooks

Users

Developers

Clone this wiki locally