-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_inbox_shared_{$type}
github-actions[bot] edited this page Nov 14, 2025
·
1 revision
ActivityPub shared inbox action for specific activity types.
This hook fires once per activity with all recipients. Preferred for new implementations to avoid duplication.
/**
* ActivityPub shared inbox action for specific activity types.
*
* This hook fires once per activity with all recipients.
* Preferred for new implementations to avoid duplication.
*
* @param array $data
* @param array $recipients
* @param Activitypub\Activity|\WP_Error $activity
* @param string $context
*/
function my_activitypub_inbox_shared_{$type}_callback( array $data = null, array $recipients = null, Activitypub\Activity|\WP_Error $activity = null, string $context = null ) {
// Your code here.
}
add_action( 'activitypub_inbox_shared_*', 'my_activitypub_inbox_shared_{$type}_callback' );-
array$dataThe data array. -
array$recipientsArray of user IDs. -
Activitypub\Activity|\WP_Error$activityThe Activity object. -
string$contextThe context of the request.
\do_action( 'activitypub_inbox_shared_' . $type, $data, $allowed_recipients, $activity, Inbox::CONTEXT_SHARED_INBOX )Follow @[email protected] for updates and news.