Yoast\WP\SEO\Dashboard\Infrastructure\Configuration
Permanently_Dismissed_Site_Kit_Configuration_Repository_Interface{}
Interface for the Permanently Dismissed Site Kit configuration Repository.
Хуков нет.
Использование
$Permanently_Dismissed_Site_Kit_Configuration_Repository_Interface = new Permanently_Dismissed_Site_Kit_Configuration_Repository_Interface(); // use class methods
Методы
- public is_site_kit_configuration_dismissed()
- public set_site_kit_configuration_dismissal( bool $is_dismissed )
Код Permanently_Dismissed_Site_Kit_Configuration_Repository_Interface{} Permanently Dismissed Site Kit Configuration Repository Interface{} Yoast 27.3
interface Permanently_Dismissed_Site_Kit_Configuration_Repository_Interface {
/**
* Sets the Site Kit configuration dismissal status.
*
* @param bool $is_dismissed The dismissal status.
*
* @return bool False when the update failed, true when the update succeeded.
*/
public function set_site_kit_configuration_dismissal( bool $is_dismissed ): bool;
/**
* Checks if the Site Kit configuration is dismissed permanently.
* *
*
* @return bool True when the configuration is dismissed, false when it is not.
*/
public function is_site_kit_configuration_dismissed(): bool;
}