WPSEO_Metabox_Analysis_Inclusive_Language::is_current_version_supported()privateYoast 1.0

Whether the inclusive language analysis should be loaded in Free.

It should always be loaded when Premium is not active. If Premium is active, it depends on the version. Some Premium versions also have inclusive language code (when it was still a Premium only feature) which would result in rendering the analysis twice. In those cases, the analysis should be only loaded from the Premium side.

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

Хуков нет.

Возвращает

true|false. Whether or not the inclusive language analysis should be loaded.

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

// private - только в коде основоного (родительского) класса
$result = $this->is_current_version_supported();

Код WPSEO_Metabox_Analysis_Inclusive_Language::is_current_version_supported() Yoast 22.3

private function is_current_version_supported() {
	$is_premium      = YoastSEO()->helpers->product->is_premium();
	$premium_version = YoastSEO()->helpers->product->get_premium_version();

	return ! $is_premium
		|| version_compare( $premium_version, '19.6-RC0', '>=' )
		|| version_compare( $premium_version, '19.2', '==' );
}