Yoast\WP\SEO\Conditionals\Third_Party

Site_Kit_Conditional{}Yoast 1.0└─ Conditional

Conditional that is only met when the SiteKit plugin is active.

Хуков нет.

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

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

Методы

  1. public is_met()

Код 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' );
	}
}