Automattic\WooCommerce\Internal\Admin

SiteHealth::has_outdated_woocommerce_com_pluginsprivateWC 1.0

Determine whether the store has outdated WooCommerce.com plugins that need connection to update.

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

Хуков нет.

Возвращает

true|false.

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

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

Код SiteHealth::has_outdated_woocommerce_com_plugins() WC 11.0.1

private function has_outdated_woocommerce_com_plugins() {
	if ( ! class_exists( WC_Helper_Updater::class ) ) {
		return false;
	}

	return 'long' === WC_Helper_Updater::get_woo_connect_notice_type();
}