# wordpress-seo/27.8/src/conditionals/third-party/polylang-conditional.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.8/code/src/conditionals/third-party/polylang-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.8/raw/src/conditionals/third-party/polylang-conditional.php
- Modified: 2022-08-18T13:39:34+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/27.8/code/src/conditionals/third-party/polylang-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals\Third_Party;

use Yoast\WP\SEO\Conditionals\Conditional;

/**
 * Conditional that is only met when the Polylang plugin is active.
 */
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' );
	}
}

```
