Yoast\WP\SEO\Conditionals\Third_Party
Site_Kit_Conditional{}└─ Conditional
Conditional that is only met when the SiteKit plugin is active.
Хуков нет.
Использование
$Site_Kit_Conditional = new Site_Kit_Conditional(); // use class methods
Методы
- public is_met()
Код Site_Kit_Conditional{} Site Kit Conditional{} Yoast 27.7
class Site_Kit_Conditional implements Conditional {
/**
* Checks whether the SiteKit plugin is active.
*
* @return bool Whether the SiteKit plugin is active.
*/
public function is_met() {
return \defined( 'GOOGLESITEKIT_VERSION' );
}
}