WC_Helper::disconnect()public staticWC 1.0

Handles WC Helper disconnect tasks.

Метод класса: WC_Helper{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Helper::disconnect();

Код WC_Helper::disconnect() 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();
}