# wordpress-seo/18.4/src/conditionals/news-conditional.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.4. 19 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.4/code/src/conditionals/news-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.4/raw/src/conditionals/news-conditional.php
- Modified: 2021-10-05T08:07:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/18.4/code/src/conditionals/news-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals;

/**
 * Conditional that is only met when news SEO is activated.
 */
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' );
	}
}

```
