WP_REST_Server::is_dispatching(): bool

In this article

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

public function is_dispatching() {
	return (bool) $this->dispatching_requests;
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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