Yoast\WP\SEO\Bulk_Editor\User_Interface

Bulk_Editor_Integration::is_woo_seo_version_supported │ private │ Yoast 1.0

Checks whether the active Yoast WooCommerce SEO version fills the products "Image alt text" tab.

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

Хуков нет.

Возвращает

bool. False when the add-on is not active or needs an update.

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

// private - только в коде основоного (родительского) класса
$result = $this->is_woo_seo_version_supported( $is_woo_seo_active ): bool;
$is_woo_seo_active(true|false) (обязательный)
Whether Yoast WooCommerce SEO is active.

Код Bulk_Editor_Integration::is_woo_seo_version_supported() Yoast 28.9

private function is_woo_seo_version_supported( bool $is_woo_seo_active ): bool {
	if ( ! $is_woo_seo_active ) {
		return false;
	}

	$versions = $this->addon_manager->get_installed_addons_versions();
	if ( ! isset( $versions[ WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ] ) ) {
		return false;
	}

	return \version_compare( $versions[ WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ], self::LAST_UNSUPPORTED_WOO_SEO_VERSION, '>' );
}