Automattic\WooCommerce\Internal\WCCom
ConnectionHelper::is_connected()
Check if Woo.com account is connected.
Method of the class: ConnectionHelper{}
No Hooks.
Return
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 8.6.1
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; }