- 
                Notifications
    
You must be signed in to change notification settings  - Fork 83
 
activitypub_rest_inbox_disallowed
        github-actions[bot] edited this page Aug 18, 2025 
        ·
        26 revisions
      
    ActivityPub inbox disallowed activity for specific user.
/**
 * 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 );- 
array$dataThe data array. - 
Activitypub\null$user_idThe user ID. - 
string$typeThe type of the activity. - 
Activitypub\Activity|\WP_Error$activityThe Activity object. 
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 )Follow @[email protected] for updates and news.