wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_is_rest_endpoint › WordPress Filter Hooks

Da6.5.0
Deprecaton/a
› apply_filters( 'wp_is_rest_endpoint', $is_rest_endpoint )
Parametri:
  • () is_request_endpoint Whether a REST endpoint request is currently being handled.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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