Skip to content

activitypub_inbox_shared

github-actions[bot] edited this page Oct 23, 2025 · 1 revision

ActivityPub shared inbox action.

This hook fires once per activity with all recipients. Preferred for new implementations to avoid duplication.

Auto-generated Example

/**
 * ActivityPub shared inbox action.
 * 
 * This hook fires once per activity with all recipients.
 * Preferred for new implementations to avoid duplication.
 *
 * @param array                          $data 
 * @param array                          $recipients 
 * @param string                         $type 
 * @param Activitypub\Activity|\WP_Error $activity 
 * @param string                         $context 
 * @return array The filtered value.
 */
function my_activitypub_inbox_shared_callback( array $data, array $recipients, string $type, Activitypub\Activity|\WP_Error $activity, string $context ) {
    // Your code here.
    return $data;
}
add_filter( 'activitypub_inbox_shared', 'my_activitypub_inbox_shared_callback', 10, 5 );

Parameters

  • array $data The data array.
  • array $recipients Array of user IDs.
  • string $type The type of the activity.
  • Activitypub\Activity|\WP_Error $activity The Activity object.
  • string $context The context of the request.

Files

\do_action( 'activitypub_inbox_shared', $data, $allowed_recipients, $type, $activity, Inbox::CONTEXT_SHARED_INBOX )

← All Hooks

Users

Developers

Clone this wiki locally