Automattic\WooCommerce\Internal\Admin\Notes
WooSubscriptionsNotes::is_connected
Whether or not we think the site is currently connected to WooCommerce.com.
Метод класса: WooSubscriptionsNotes{}
Хуков нет.
Возвращает
bool.
Использование
$WooSubscriptionsNotes = new WooSubscriptionsNotes(); $WooSubscriptionsNotes->is_connected();
Код WooSubscriptionsNotes::is_connected() WooSubscriptionsNotes::is connected WC 11.2.2
public function is_connected() {
$auth = \WC_Helper_Options::get( 'auth' );
return ( ! empty( $auth['access_token'] ) );
}