Google_Calendar_Helpers::disconnect_user()
Method disconnect_user.
Contents
Description Description
Removes the Google Calendar settings from wp_options table.
Return Return
(void|null|Uncanny_Automatorarray.)
Source Source
File: src/integrations/google-calendar/helpers/google-calendar-helpers.php
public function disconnect_user() { if ( wp_verify_nonce( automator_filter_input( 'nonce' ), 'automator-google-calendar-user-disconnect' ) ) { // De-authorize app. $this->api_revoke_access(); // Delete the connection settings. $this->disconnect_client(); } wp_safe_redirect( $this->get_settings_page_url() ); exit; }
Expand full source code Collapse full source code View on Github