WC_Helper::is_site_connected()
Checks if access_token exists in auth option.
Method of the class: WC_Helper{}
No Hooks.
Return
true|false
.
Usage
$result = WC_Helper::is_site_connected(): bool;
WC_Helper::is_site_connected() WC Helper::is site connected code WC 7.5.0
public static function is_site_connected(): bool { $auth = WC_Helper_Options::get( 'auth' ); // If `access_token` is empty, there's no active connection. return ! empty( $auth['access_token'] ); }