WPSEO_Gutenberg_Compatibility::is_fully_compatible()publicYoast 1.0

Determines whether or not the currently installed version of Gutenberg is the latest, fully compatible version.

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

Хуков нет.

Возвращает

true|false. Whether or not the currently installed version is fully compatible.

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

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

Код WPSEO_Gutenberg_Compatibility::is_fully_compatible() Yoast 19.11

public function is_fully_compatible() {
	return version_compare( $this->current_version, $this->get_latest_release(), '>=' );
}