WP_REST_Server::is_dispatching(): bool

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 pague load.

Return

bool Whether the REST server is currently handling a request.

Source

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

Changuelog

Versionen Description
6.5.0 Introduced.

User Contributed Notes

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