Google_Sheet_Helpers::disconnect_user()
Removes the google settings from wp_options table.
Return Return
(Uncanny_Automatorvoid.)
Source Source
File: src/integrations/google-sheet/helpers/google-sheet-helpers.php
public function disconnect_user() { if ( wp_verify_nonce( filter_input( INPUT_GET, 'nonce', FILTER_SANITIZE_STRING ), 'uo-google-user-disconnect' ) ) { $this->api_revoke_access(); delete_option( '_uncannyowl_google_sheet_settings' ); delete_option( '_uncannyowl_google_sheet_settings_expired' ); delete_transient( '_uncannyowl_google_sheet_settings' ); delete_transient( '_uncannyowl_google_user_info' ); } wp_safe_redirect( add_query_arg( array( 'post_type' => 'uo-recipe', 'page' => 'uncanny-automator-settings', 'tab' => 'googlesheets_api', ), admin_url( 'edit.php' ) ) ); exit; }
Expand full source code Collapse full source code View on Github