Automattic\WooCommerce\Internal\Admin\Notes

WooSubscriptionsNotes::is_connected()publicWC 1.0

Whether or not we think the site is currently connected to WooCommerce.com.

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

No Hooks.

Return

true|false.

Usage

$WooSubscriptionsNotes = new WooSubscriptionsNotes();
$WooSubscriptionsNotes->is_connected();

Code of WooSubscriptionsNotes::is_connected() WC 7.1.0

public function is_connected() {
	$auth = \WC_Helper_Options::get( 'auth' );
	return ( ! empty( $auth['access_token'] ) );
}