How to Add Google Drive Files to WooCommerce Memberships for Direct Downloads
Want to sell members-only downloads without uploading huge files to your WordPress server? With Integration for Google Drive and the WooCommerce Memberships plugin, you can attach Google Drive files to your WooCommerce products — and your members can download them directly from their account as long as their membership is active.
In this guide, you’ll learn how to connect Google Drive with WooCommerce, restrict downloads to members, and deliver files securely — step by step.
Why Use Google Drive for Membership Downloads?
- Save server storage & bandwidth — files are stored in Google Drive, not your hosting server, so large PDFs, videos, courses, and design assets don’t slow down your site.
- Direct, secure downloads — the plugin serves files through a secure download link, so your original Google Drive links are never exposed.
- Membership protection built in — WooCommerce Memberships controls who can access the product, and WooCommerce’s downloadable files control what they can download.
- Download tracking — every successful member download is logged, so you know exactly who downloaded which file and when.
Requirements
- WooCommerce installed and activated.
- WooCommerce Memberships plugin installed and activated.
- Integration for Google Drive PRO installed with an active license (the WooCommerce integration is a PRO feature).
- Your Google account connected to the plugin — see How to Install and Activate Integration for Google Drive.
Quick Start
- Enable the WooCommerce integration in the plugin settings.
- Create a downloadable product and attach files with the Add Google Drive File button.
- Create a Membership Plan in WooCommerce Memberships and grant it access to the product.
- Members download the files directly from My Account → Downloads.
Step 1: Enable the WooCommerce Integration
First, turn on the WooCommerce integration inside Integration for Google Drive:
- Go to WordPress Dashboard → Google Drive → Settings.
- Open the Integrations tab.
- Find WooCommerce in the integrations list and toggle it ON.
- Click Save Settings.
Step 2: Create a Downloadable Product with Google Drive Files
Next, attach your Google Drive files to a WooCommerce product:
- Go to Products → Add New (or edit an existing product).
- Enter the product title, description, and price.
- In the Product data panel, check both Virtual and Downloadable.
- In the Downloadable files section, click the Add Google Drive File button (with the Google Drive logo).
- The Google Drive file selector will open — browse your Drive, select one or more files, then click Confirm.
- The selected files are automatically added to the downloadable files table with their name and a secure download URL.
- Optionally, set a Download limit and Download expiry.
- Click Publish (or Update).
Step 3: Create a Membership Plan
Now set up the membership plan that will control access:
- Go to WooCommerce → Memberships → Membership Plans → Add Membership Plan.
- Give your plan a name — for example, Premium Downloads.
- Under General, set how the membership is granted:
- Grant access upon product purchase — select the product(s) that sell the membership (e.g., a “Premium Membership” subscription or one-time product), or
- Manual assignment only — if you want to add members manually.
- Set the Membership length (unlimited, fixed, or subscription-tied).
- Click Publish.
Step 4: Restrict the Download Product to Members
Connect your Google Drive download product to the membership plan:
- Edit your membership plan and open the Restrict Products tab.
- Click Add New Rule and select your downloadable product (or a whole product category) under Title.
- Choose whether non-members can view the product but not purchase it, or hide it completely.
- If members should get the files without purchasing the product separately, open the Purchasing Discounts tab and give members a 100% discount on the product — or keep the product free and restrict purchasing to members only.
- Click Update to save the plan.
Step 5: Test the Direct Member Download
Always verify the flow before going live:
- Create a test user and give them the membership (manually or by completing a test purchase).
- Log in as the test member and purchase/claim the downloadable product.
- Go to My Account → Downloads — the Google Drive files appear as download buttons.
- Click a download button — the file downloads directly through a secure link. The member never sees your Google Drive account or the original file URL.
- Now log in as a non-member — the product should be restricted, and no download links should be available.
Bonus: Show a Members-Only Google Drive File Browser
Instead of (or alongside) per-product downloads, you can give members a browsable library of files:
- Go to Google Drive → Module Builder and create a File Browser module pointing to your members-only Drive folder. See How to Add a File Browser Module.
- In the module’s Permissions settings, allow Download and set Display For to logged-in users or specific roles.
- Create a WordPress page (e.g., “Member Library”) and add the module via the shortcode or block:
[integration_google-drive id="1"] - In your membership plan, open Restrict Content → Add New Rule and restrict the “Member Library” page to plan members.
Now members get a full Google Drive file library they can browse, search, and download directly — and non-members see WooCommerce Memberships’ restriction message instead.
Best Practices
- Organize Drive files into a dedicated folder (e.g.,
/Members Downloads/) so you never accidentally attach a private file. - Use Download limit and Download expiry on high-value products to discourage link sharing — the secure URL is tied to the customer’s order.
- Keep memberships subscription-based if content is updated regularly; expired members automatically lose download access.
- Test after every plugin update with a non-admin member account — admins often bypass restrictions, which can hide problems.
- Watch the Download Notifications in the plugin to monitor which members are downloading which files.
Troubleshooting
- The “Add Google Drive File” button doesn’t appear? Make sure the WooCommerce integration is toggled ON in Google Drive → Settings → Integrations, you’re using the PRO version with an active license, and the product’s Downloadable checkbox is checked.
- Members see “Download Error”? The linked Drive file may have been moved, deleted, or the connected Google account lost access. Re-select the file from the product’s downloadable files section.
- Non-members can still download? Check your membership plan’s Restrict Products rules and confirm the rule targets the correct product. Test with a logged-out browser or a fresh non-member account — not your admin account.
- Downloads open in Google Drive’s viewer instead of downloading? The plugin automatically switches WooCommerce’s download method to redirect for Google Drive files. If another plugin forces a different download method, disable that override for downloadable products.
- Files or folders don’t show in the file selector? Follow Google Drive Files and Folders Not Showing in the Plugin.
Frequently Asked Questions
Does this work with free membership plugins too?
Yes. The Google Drive downloadable-file feature works with standard WooCommerce downloadable products, so any membership plugin that can restrict WooCommerce products (WooCommerce Memberships, Paid Memberships Pro with WooCommerce, MemberPress + WooCommerce, etc.) can gate the downloads.
Are my Google Drive links exposed to customers?
No. Customers only ever see a secure site URL. The plugin generates the actual download link server-side at the moment of download.
Can members download entire folders?
Yes — you can select a folder as a downloadable file, and members receive it as a ZIP download. For large folders, the members-only File Browser approach (see the Bonus section) usually gives a better experience.
What happens when a membership expires?
WooCommerce Memberships revokes access to the restricted products and pages, so the member can no longer reach the download links.

