# wordpress-seo/28.6/src/dashboard/infrastructure/configuration/site-kit-consent-repository-interface.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.6. 30 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.6/code/src/dashboard/infrastructure/configuration/site-kit-consent-repository-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.6/raw/src/dashboard/infrastructure/configuration/site-kit-consent-repository-interface.php
- Modified: 2026-01-20T12:23:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.6/code/src/dashboard/infrastructure/configuration/site-kit-consent-repository-interface.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Dashboard\Infrastructure\Configuration;

/**
 * Interface for theSite Kit Consent Repository.
 *
 * @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
 */
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;
}

```
