Airplane_Mode_Core::get_redirect PHP Method

get_redirect() protected static method

Fetch the URL to redirect to after toggling Airplane Mode.
protected static get_redirect ( ) : string
return string The URL to redirect to.
        protected static function get_redirect()
        {
            // Return the args for the actual redirect.
            $redirect = remove_query_arg(array('airplane-mode', 'airmde_nonce', 'user_switched', 'switched_off', 'switched_back', 'message', 'update', 'updated', 'settings-updated', 'saved', 'activated', 'activate', 'deactivate', 'enabled', 'disabled', 'locked', 'skipped', 'deleted', 'trashed', 'untrashed'));
            // Redirect away from the update core page.
            $redirect = str_replace('update-core.php', '', $redirect);
            // And return the redirect.
            return apply_filters('airplane_mode_redirect_url', $redirect);
        }