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