rest_delete_user

rest_delete_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('rest_delete_user') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php line 955
    		 * @param WP_User          $user     The user data.
    		 * @param WP_REST_Response $response The response returned from the API.
    		 * @param WP_REST_Request  $request  The request sent to the API.
    		 */
    		do_action( 'rest_delete_user', $user, $response, $request );
    
    		return $response;
    	}
    
    	/**
    	 * Checks if a given request has access to delete the current user.