wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_is_rest_endpoint › WordPress Filter Hooks

Since6.5.0
Deprecatedn/a
apply_filters( 'wp_is_rest_endpoint', $is_rest_endpoint )
Parameters:
  • (bool) $is_request_endpoint Whether a REST endpoint request is currently being handled.
    Required: Yes
Defined at:
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.





Source

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