Automattic\WooCommerce\Internal\WCCom
ConnectionHelper::is_connected
Check if WooCommerce.com account is connected.
Method of the class: ConnectionHelper{}
No Hooks.
Returns
true|false. Whether account is connected.
Usage
$result = ConnectionHelper::is_connected();
Changelog
| Since 4.4.0 | Introduced. |
ConnectionHelper::is_connected() ConnectionHelper::is connected code WC 11.0.0
public static function is_connected() {
$helper_options = get_option( 'woocommerce_helper_data', array() );
if ( is_array( $helper_options ) && array_key_exists( 'auth', $helper_options ) && ! empty( $helper_options['auth'] ) ) {
return true;
}
return false;
}