Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

GetMobileApp::is_current_user_connected()private staticWC 1.0

Determines if the current user is connected to Jetpack.

Method of the class: GetMobileApp{}

No Hooks.

Return

true|false.

Usage

$result = GetMobileApp::is_current_user_connected();

GetMobileApp::is_current_user_connected() code WC 8.6.1

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_connection_owner();
	}
	return false;
}