Yoast\WP\SEO\Dashboard\Infrastructure\Configuration

Site_Kit_Consent_Repository::set_site_kit_consent()publicYoast 1.0

Sets the Site Kit consent value.

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

Хуков нет.

Возвращает

true|false. False when the update failed, true when the update succeeded.

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

$Site_Kit_Consent_Repository = new Site_Kit_Consent_Repository();
$Site_Kit_Consent_Repository->set_site_kit_consent( $consent ): bool;
$consent(true|false) (обязательный)
The consent status.

Код Site_Kit_Consent_Repository::set_site_kit_consent() Yoast 25.1

public function set_site_kit_consent( bool $consent ): bool {
	return $this->options_helper->set( 'site_kit_connected', $consent );
}