Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

ExperimentalShippingRecommendation::has_jetpack_connected()public staticWC 1.0

Check if the Jetpack is connected.

Method of the class: ExperimentalShippingRecommendation{}

No Hooks.

Return

true|false.

Usage

$result = ExperimentalShippingRecommendation::has_jetpack_connected();

ExperimentalShippingRecommendation::has_jetpack_connected() code WC 9.0.1

public static function has_jetpack_connected() {
	$jetpack_connection_manager = new Manager( 'woocommerce' );

	return $jetpack_connection_manager->is_connected() && $jetpack_connection_manager->has_connected_owner();
}