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 24.0

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