WP_REST_Server::is_dispatching()
Returns whether the REST server is currently dispatching / responding to a request.
Description
This may be a standalone REST API request, or an internal request dispatched from within a regular page load.
Return
(bool) Whether the REST server is currently handling a request.
Source
File: wp-includes/rest-api/class-wp-rest-server.php
public function is_dispatching() {
return (bool) $this->dispatching_requests;
}
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |