Yoast\WP\SEO\Dashboard\Infrastructure\Configuration

Site_Kit_Consent_Repository_Interface{}Yoast 1.0

Interface for theSite Kit Consent Repository.

Хуков нет.

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

$Site_Kit_Consent_Repository_Interface = new Site_Kit_Consent_Repository_Interface();
// use class methods

Методы

  1. public is_consent_granted()
  2. public set_site_kit_consent( bool $consent )

Код Site_Kit_Consent_Repository_Interface{} Yoast 25.0

interface Site_Kit_Consent_Repository_Interface {

	/**
	 * Sets the Site Kit consent.
	 *
	 * @param bool $consent The consent value.
	 *
	 * @return bool False when the update failed, true when the update succeeded.
	 */
	public function set_site_kit_consent( bool $consent ): bool;

	/**
	 * Returns the Site Kit consent status.
	 * *
	 *
	 * @return bool True when the consent has been granted, false when it is not.
	 */
	public function is_consent_granted(): bool;
}