WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal\WCCom

ConnectionHelper::is_connected() public WC 4.4.0

Check if WooCommerce.com account is connected.

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

No Hooks.

Return

true|false. Whether account is connected.

Usage

$result = ConnectionHelper::is_connected();

Changelog

Since 4.4.0 Introduced.

Code of ConnectionHelper::is_connected() WC 5.9.0

public static function is_connected() {
	$helper_options    = get_option( 'woocommerce_helper_data', array() );
	if ( array_key_exists( 'auth', $helper_options ) && ! empty( $helper_options['auth'] ) ) {
		return true;
	}
	return false;
}