Automattic\WooCommerce\Internal\Integrations

WPConsentAPI::is_wp_consent_api_activeprotectedWC 1.0

Check if WP Cookie Consent API is active

Method of the class: WPConsentAPI{}

No Hooks.

Returns

true|false.

Usage

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

WPConsentAPI::is_wp_consent_api_active() code WC 10.8.1

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