- 
                Notifications
    You must be signed in to change notification settings 
- Fork 83
activitypub_inbox
        github-actions[bot] edited this page Oct 30, 2025 
        ·
        27 revisions
      
    Fires after an Announce has been received.
/**
 * 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 );- 
array$objectThe object.
- 
Activitypub\int[]$user_idsThe ids of the local blog-users.
- 
string$typeThe type of the activity.
- 
Activitypub\Activity\Activity|null$activityThe activity object.
- 
string$contextThe context of the request (shared_inbox when called from shared inbox endpoint).
\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 )Follow @[email protected] for updates and news.