Core Function
View Source on Trac ↗ wp_is_rest_endpoint()
wp_is_rest_endpoint( ) Checks whether a REST API endpoint request is currently being handled.
Return Value
(bool)
True if a REST endpoint request is currently being handled, false otherwise.
Function Information
Since Version
6.5.0
Source File
wp-includes/rest-api.php
Advertisement