A WordPress-centric search engine for devs and theme authors



rest_dispatch_request ›

Since4.5.0
Deprecatedn/a
apply_filters( 'rest_dispatch_request', null, $request, $route, $handler )
Parameters: (4)
  • (mixed) $dispatch_result Dispatch result, will be used if not empty.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
  • (string) $route Route matched for the request.
    Required: Yes
  • (array) $handler Route handler used for the request.
    Required: Yes
Defined at:
Codex:

Filters the REST dispatch request result.

Allow plugins to override dispatching the request.





Source

$dispatch_result = apply_filters( 'rest_dispatch_request', null, $request, $route, $handler );