WC_API::is_rest_api_loaded()protectedWC 3.7.0

Return if the rest API classes were already loaded.

Метод класса: WC_API{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_rest_api_loaded();

Список изменений

С версии 3.7.0 Введена.

Код WC_API::is_rest_api_loaded() WC 8.7.0

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