- 
                Notifications
    You must be signed in to change notification settings 
- Fork 84
activitypub_inbox_shared_
        github-actions[bot] edited this page Oct 23, 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 
 * @return array The filtered value.
 */
function my_activitypub_inbox_shared__callback( array $data, array $recipients, Activitypub\Activity|\WP_Error $activity, string $context ) {
    // Your code here.
    return $data;
}
add_filter( 'activitypub_inbox_shared_', 'my_activitypub_inbox_shared__callback', 10, 4 );- 
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.