wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_is_rest_endpoint › Filtr WordPress Hooks

Od6.5.0
Przestarzałyn/a
› apply_filters( 'wp_is_rest_endpoint', $is_rest_endpoint )
Parametry:
  • () is_request_endpoint Whether a REST endpoint request is currently being handled.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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