Yoast\WP\SEO\Conditionals
Jetpack_Conditional{}
Conditional that is only met when Jetpack exists.
Хуков нет.
Использование
$Jetpack_Conditional = new Jetpack_Conditional(); // use class methods
Методы
- public is_met()
Код Jetpack_Conditional{} 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' ); } }