Automattic\WooCommerce\Internal\Admin\Notes

WooSubscriptionsNotes::is_connected()publicWC 1.0

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

Method of the class: WooSubscriptionsNotes{}

No Hooks.

Return

true|false.

Usage

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

WooSubscriptionsNotes::is_connected() code WC 8.6.1

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