Automattic\WooCommerce\Internal\Admin\Notes
WooSubscriptionsNotes::is_connected
Whether or not we think the site is currently connected to WooCommerce.com.
Method of the class: WooSubscriptionsNotes{}
No Hooks.
Returns
true|false.
Usage
$WooSubscriptionsNotes = new WooSubscriptionsNotes(); $WooSubscriptionsNotes->is_connected();
WooSubscriptionsNotes::is_connected() WooSubscriptionsNotes::is connected code WC 10.9.4
public function is_connected() {
$auth = \WC_Helper_Options::get( 'auth' );
return ( ! empty( $auth['access_token'] ) );
}