Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_dispatch_request ›

Seit4.5.0
Veraltetn/v
apply_filters( 'rest_dispatch_request', null, $request, $route, $handler )
Parameter: (4)
  • (mixed) $dispatch_result Dispatch result, will be used if not empty.
    Erforderlich: Ja
  • (WP_REST_Request) $request Request used to generate the response.
    Erforderlich: Ja
  • (string) $route Route matched for the request.
    Erforderlich: Ja
  • (array) $handler Route handler used for the request.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the REST dispatch request result.

Allow plugins to override dispatching the request.





Quellcode

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