Yoast\WP\SEO\Dashboard\Infrastructure\Configuration

Site_Kit_Consent_Repository::is_consent_granted()publicYoast 1.0

Checks if consent has ben given for Site Kit.
*

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

Хуков нет.

Возвращает

true|false. True when consent has been given, false when it is not.

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

$Site_Kit_Consent_Repository = new Site_Kit_Consent_Repository();
$Site_Kit_Consent_Repository->is_consent_granted(): bool;

Код Site_Kit_Consent_Repository::is_consent_granted() Yoast 25.1

public function is_consent_granted(): bool {
	return $this->options_helper->get( 'site_kit_connected', false );
}