Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

ExperimentalShippingRecommendation::has_plugins_active()public staticWC 1.0

Check if the store has any shipping zones.

{} Это метод класса: ExperimentalShippingRecommendation{}

Хуков нет.

Возвращает

true|false.

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

$result = ExperimentalShippingRecommendation::has_plugins_active();

Код ExperimentalShippingRecommendation::has_plugins_active() WC 6.9.1

public static function has_plugins_active() {
	return PluginsHelper::is_plugin_active( 'woocommerce-services' ) &&
	PluginsHelper::is_plugin_active( 'jetpack' );
}