WC_Helper::disconnect()
Handles WC Helper disconnect tasks.
Method of the class: WC_Helper{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Helper::disconnect();
WC_Helper::disconnect() WC Helper::disconnect code WC 8.7.0
public static function disconnect() { WC_Helper_API::post( 'oauth/invalidate_token', array( 'authenticated' => true, ) ); WC_Helper_Options::update( 'auth', array() ); WC_Helper_Options::update( 'auth_user_data', array() ); self::_flush_subscriptions_cache(); self::_flush_updates_cache(); }