Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

GetMobileApp::is_jetpack_connected()private staticWC 1.0

Determines if site has any users connected to WordPress.com via JetPack

Method of the class: GetMobileApp{}

No Hooks.

Return

true|false.

Usage

$result = GetMobileApp::is_jetpack_connected();

GetMobileApp::is_jetpack_connected() code WC 7.1.0

private static function is_jetpack_connected() {
	if ( class_exists( '\Automattic\Jetpack\Connection\Manager' ) && method_exists( '\Automattic\Jetpack\Connection\Manager', 'is_active' ) ) {
		$connection = new Manager();
		return $connection->is_active();
	}
	return false;
}