Forum Replies Created

Viewing 1 replies (of 1 total)
  • In case that’s helpful, if you want to disable read-access to your whole Google Drive, add this to your functions.php before doing the sign into Google step:

    // this is to disable full read access on google drive to updraftplus
    add_filter('updraft_googledrive_scope', function ($scopes) {
        $scopes_array = explode(' ', $scopes);
        $new_scopes = array_diff($scopes_array, ['https://www.googleapis.com/auth/drive.readonly']);
        return implode(' ', $new_scopes);
    });

    When you go back to your updraftplus plugin config page and finish the setup by signing into Google, it will only ask access to UpdraftPlus files on Drive.

    I just did this, thank you all for this thread.

    • This reply was modified 2 years, 7 months ago by robindesbles.
Viewing 1 replies (of 1 total)