rest_dispatch_request

rest_dispatch_request

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('rest_dispatch_request') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 1187
    			 * @param WP_REST_Request $request         Request used to generate the response.
    			 * @param string          $route           Route matched for the request.
    			 * @param array           $handler         Route handler used for the request.
    			 */
    			$dispatch_result = apply_filters( 'rest_dispatch_request', null, $request, $route, $handler );
    
    			// Allow plugins to halt the request via this filter.
    			if ( null !== $dispatch_result ) {
    				$response = $dispatch_result;
    			} else {
    				$response = call_user_func( $handler['callback'], $request );
    

See this hook used in plugins: