Yoast\WP\SEO\Dashboard\Infrastructure\Configuration

Site_Kit_Consent_Repository_Interface::set_site_kit_consent()publicYoast 1.0

Sets the Site Kit consent.

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

Хуков нет.

Возвращает

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

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

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

Код Site_Kit_Consent_Repository_Interface::set_site_kit_consent() Yoast 25.1

public function set_site_kit_consent( bool $consent ): bool;