Yoast\WP\SEO\Conditionals

News_Conditional{}Yoast 1.0

Conditional that is only met when news SEO is activated.

Хуков нет.

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

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

Методы

  1. public is_met()

Код News_Conditional{} Yoast 19.11

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' );
	}
}