Skip to content

activitypub_rest_inbox_disallowed

github-actions[bot] edited this page Aug 18, 2025 · 10 revisions

activitypub_rest_inbox_disallowed

ActivityPub inbox disallowed activity for specific user.

Auto-generated Example

/**
 * ActivityPub inbox disallowed activity for specific user.
 *
 * @param array                          $data 
 * @param Activitypub\null               $user_id 
 * @param string                         $type 
 * @param Activitypub\Activity|\WP_Error $activity 
 */
function my_activitypub_rest_inbox_disallowed_callback( array $data, Activitypub\null $user_id, string $type, Activitypub\Activity|\WP_Error $activity ) {
    // Your code here.
}
add_action( 'activitypub_rest_inbox_disallowed', 'my_activitypub_rest_inbox_disallowed_callback', 10, 4 );

Parameters

  • array $data The data array.
  • Activitypub\null $user_id The user ID.
  • string $type The type of the activity.
  • Activitypub\Activity|\WP_Error $activity The Activity object.

Files

do_action( 'activitypub_rest_inbox_disallowed', $data, $user_id, $type, $activity )
do_action( 'activitypub_rest_inbox_disallowed', $data, null, $type, $activity )
\do_action( 'activitypub_rest_inbox_disallowed', $data, $user_id, $type, $activity )

← All Hooks

Users

Developers

Clone this wiki locally