Yoast\WP\SEO\Conditionals\Third_Party

Polylang_Conditional{}Yoast 1.0

Conditional that is only met when the Polylang plugin is active.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Polylang_Conditional{} Yoast 19.7.1

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