Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

ExperimentalShippingRecommendation::has_jetpack_connected()public staticWC 1.0

Check if the Jetpack is connected.

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

Хуков нет.

Возвращает

true|false.

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

$result = ExperimentalShippingRecommendation::has_jetpack_connected();

Код ExperimentalShippingRecommendation::has_jetpack_connected() WC 6.9.4

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