Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

GetMobileApp::is_current_user_connected()private staticWC 1.0

Determines if the current user is connected to Jetpack.

{} It's a method of the class: GetMobileApp{}

No Hooks.

Return

true|false.

Usage

$result = GetMobileApp::is_current_user_connected();

Code of GetMobileApp::is_current_user_connected() WC 7.1.0

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