apply_filters( ‘wp_is_rest_endpoint’, bool $is_request_endpoint )

In this article

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_endpointbool
Whether a REST endpoint request is currently being handled.

Source

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

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.