Yoast\WP\SEO\Conditionals

Jetpack_Conditional{}Yoast 1.0

Conditional that is only met when Jetpack exists.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Jetpack_Conditional{} Yoast 22.4

class Jetpack_Conditional implements Conditional {

	/**
	 * Returns `true` when the Jetpack plugin exists on this
	 * WordPress installation.
	 *
	 * @return bool `true` when the Jetpack plugin exists on this WordPress installation.
	 */
	public function is_met() {
		return \class_exists( 'Jetpack' );
	}
}