Filters whether a REST endpoint request is currently being handled.
Description
This may be a standalone REST API request, or an internal request dispatched from within a regular page load.
Parameters
$is_request_endpoint
bool- Whether a REST endpoint request is currently being handled.
Source
return (bool) apply_filters( 'wp_is_rest_endpoint', $is_rest_endpoint );
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.