WordPress at Your Fingertips
function is not described

WC_API::is_rest_api_loaded() protected WC 3.7.0

Return if the rest API classes were already loaded.

{} It's a method of the class: WC_API{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_rest_api_loaded();

Changelog

Since 3.7.0 Introduced.

Code of WC_API::is_rest_api_loaded() WC 5.9.0

protected function is_rest_api_loaded() {
	return class_exists( '\Automattic\WooCommerce\RestApi\Server', false );
}