Yoast\WP\SEO\Conditionals
News_Conditional{}└─ 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 27.6
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' );
}
}