Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

ExperimentalShippingRecommendation::has_jetpack_connected()public staticWC 1.0

Check if the Jetpack is connected.

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

No Hooks.

Return

true|false.

Usage

$result = ExperimentalShippingRecommendation::has_jetpack_connected();

Code of ExperimentalShippingRecommendation::has_jetpack_connected() WC 7.1.0

public static function has_jetpack_connected() {
	if ( class_exists( '\Jetpack' ) && is_callable( '\Jetpack::is_connection_ready' ) ) {
		return \Jetpack::is_connection_ready();
	}
	return false;
}