Google Drive

Next3 Offload Plugin Setup

This guide will walk you through the initial setup and configuration of the Next3 Offload plugin. Follow
these steps to connect the plugin to your chosen Google Drive and begin offloading your media.

Choose and Configure Your Cloud Provider

In this final step, you will connect the plugin to your cloud storage provider.

Choose a Cloud Provider: Select Google Drive.

  • Configure Credentials: After selecting your provider, you need to provide your access credentials. You have two options:
    • Option A: Define Credentials in wp-config.php (Recommended)
      This is the most secure method. Copy the provided code snippet and paste it into your
      wp-config.php file. You will need to replace the placeholder values with your actual Client ID, Client Secret.
define( 'NEXT3_SETTINGS', serialize( array(
    'provider' => 'godrive',
    'app-key' => 'your-app-key',
    'app-secret' => 'your-app-secret',
    'endpoint' => '',
) ) );

  • Option B: Store Credentials in the Database. You can store your credentials directly in the database. Select this option and enter your Client ID, Client Secret into the form fields.

Cloud Configuration

🔐 Google Drive Authorization Setup Guide

To integrate with Google Drive and generate a valid refresh token, follow these steps carefully:

Step 1: Start Authorization

  • On the configuration screen (Step 4/4), you’ll see a message:
    “Need permission for generate refresh token, click to the link Authorization”
  • Click the Authorization link to proceed with granting access.

Step 2: Choose Google Account

  • A new window will open asking you to choose or log in to your Google account.
  • Select the account you want to link with the application.

Step 3: Grant Permissions

  • Google will request you to grant access permissions such as:
    • Viewing and managing the files in your Google Drive.
    • Viewing your email address and basic profile information.
  • Click Allow to continue.

✅ Step 4: Finalize

Click Check Connection to confirm the setup.

Next

Leave a Reply