Automattic\WooCommerce\Internal\Integrations

WPConsentAPI::is_wp_consent_api_active │ protected │ WC 1.0

Check if WP Cookie Consent API is active

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

Хуков нет.

Возвращает

bool.

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

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

Код WPConsentAPI::is_wp_consent_api_active() WC 11.2.2

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