WC_Helper::disconnect()public staticWC 1.0

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() code WC 9.0.1

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();
}