Automattic\WooCommerce\Internal\Integrations

WPConsentAPI::is_wp_consent_api_active()protectedWC 1.0

Check if WP Cookie Consent API is active

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

Хуков нет.

Возвращает

true|false.

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

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

Код WPConsentAPI::is_wp_consent_api_active() WC 9.7.1

protected function is_wp_consent_api_active() {
	return class_exists( WP_CONSENT_API::class );
}