Yoast\WP\SEO\Conditionals
News_Conditional{}
Conditional that is only met when news SEO is activated.
Хуков нет.
Использование
$News_Conditional = new News_Conditional(); // use class methods
Методы
- public is_met()
Код News_Conditional{} News Conditional{} Yoast 22.4
class News_Conditional implements Conditional { /** * Returns whether or not this conditional is met. * * @return bool Whether or not the conditional is met. */ public function is_met() { return \defined( 'WPSEO_NEWS_VERSION' ); } }