Zoom_Helpers::settings_updated()

settings_updated

Contents


Return Return

(void)


Source Source

File: src/integrations/zoom/helpers/zoom-helpers.php

	public function settings_updated() {
		$redirect_url = $this->tab_url;
	
		delete_option( '_uncannyowl_zoom_settings' );
		$result = 1;
		try {
			$this->api_get_user_info();
		} catch ( \Exception $e ) { 
			delete_option( 'uap_zoom_api_connected_user' );
			$result = $e->getMessage();
		}
		$redirect_url .= '&connect=' . $result;
		
		wp_safe_redirect( $redirect_url );
		exit;
	}