WPSEO_Gutenberg_Compatibility::is_installed()publicYoast 1.0

Determines whether or not Gutenberg is installed.

{} Это метод класса: WPSEO_Gutenberg_Compatibility{}

Хуков нет.

Возвращает

true|false. Whether or not Gutenberg is installed.

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

$WPSEO_Gutenberg_Compatibility = new WPSEO_Gutenberg_Compatibility();
$WPSEO_Gutenberg_Compatibility->is_installed();

Код WPSEO_Gutenberg_Compatibility::is_installed() Yoast 19.10

public function is_installed() {
	return $this->current_version !== '';
}