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



wp_is_rest_endpoint › WordPress Filter Hooks

Seit6.5.0
Veraltetn/v
apply_filters( 'wp_is_rest_endpoint', $is_rest_endpoint )
Parameter:
  • (bool) $is_request_endpoint Whether a REST endpoint request is currently being handled.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether a REST endpoint request is currently being handled.

This may be a standalone REST API request, or an internal request dispatched from within a regular page load.





Quellcode

return (bool) apply_filters( 'wp_is_rest_endpoint', $is_rest_endpoint );