-
Notifications
You must be signed in to change notification settings - Fork 84
activitypub_inbox
github-actions[bot] edited this page Oct 23, 2025
·
25 revisions
Fires after an Announce has been received.
/**
* Fires after an Announce has been received.
*
* @param array $object
* @param int $user_id
* @param string $type
* @param Activitypub\Activity\Activity $activity
* @param string $context
* @return array The filtered value.
*/
function my_activitypub_inbox_callback( array $object, int $user_id, 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. -
int$user_idThe id of the local blog-user. -
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, $user_id, $type, $activity )Follow @[email protected] for updates and news.