
Frontend file explorer.
seljeDrive Document Library for Google Drive lets you publish a Google Drive folder on your WordPress site as a simple file explorer.
Find this free plugin useful? Please support my work on this plugin by sending me a one-time donation (50% of the proceeds go to Ukraine).
Key features:
Find this free plugin useful? Please support my work on this plugin by making a donation.
This plugin relies on third party services to function.
Google Drive is a trademark of Google LLC. This plugin is not affiliated with or endorsed by Google.
WordPress is a trademark of the WordPress Foundation. This plugin is not affiliated with or sponsored by, the WordPress Foundation.
What it is used for:
When data is sent:
[sg_doc_library] shortcode (your WordPress site fetches file/folder metadata from Google to render the library)What data is sent:
docs.google.com export links or drive.google.com download links)Data flow / conditions:
Endpoints contacted:
Visitor browser destinations (when using Open/Download):
OAuth scope:
Google Privacy Policy:
Google Terms of Service:
Google APIs Terms of Service:
What it is used for:
When data is sent:
What data is sent:
Stripe Privacy Policy:
Stripe Terms / Legal:
Client ID
The OAuth 2.0 Client ID from your Google Cloud project. Find it under APIs & Services > Credentials > OAuth 2.0 Client IDs in the Google Cloud Console.
Client Secret
The OAuth 2.0 Client Secret from your Google Cloud project. It is stored encrypted (AES-256-CBC) in the WordPress database. Leave the field blank to keep the existing stored secret when re-saving settings.
Redirect URI
A read-only field showing the URI you must register as an Authorized Redirect URI in your Google Cloud Console OAuth client. Copy it with the Copy button and paste it into Google Cloud Console before clicking Connect Google.
Connect Google / Disconnect
After saving your Client ID and Client Secret, click Connect Google to start the OAuth authorization flow. Once the authorization is complete, the status shows Connected. Click Disconnect at any time to remove the stored OAuth token.
Name
A label for your own reference to identify this library in the admin. It is not visible to visitors on the frontend.
Public Folder Share URL
The sharing URL of a Google Drive folder. The folder must be shared with “Anyone with the link can view” in Google Drive before it will work with this plugin.
Access
Controls who can browse this library:
Allowed roles
Only shown when Access is set to Specific roles. Check all WordPress user roles that should be allowed to view the library. Visitors not matching a selected role will see an access denied message.
Hide Open button
When enabled, the Open button is hidden in the file list. Visitors cannot open files in a new browser tab directly from the library.
Hide Download button
When enabled, the Download button is hidden in the file list. Visitors cannot download files directly from the library.
Remove header from frontend
When enabled, the breadcrumb navigation and the search bar at the top of the library are removed from the frontend display. Useful when you want a minimal, non-navigable file list.
Icon is preview of file content
When enabled, Google Drive preview thumbnails are loaded as file icons instead of generic file-type icons. This provides a visual preview of each file’s contents, but may slightly increase page load time for large folders.
Frontend language
Sets the display language for this library’s UI elements (buttons, status messages, labels). Defaults to the WordPress site language if left on Default. Change this per library if you need a different language than the site default.
Root folder label
Custom text displayed as the label for the top-level breadcrumb in the file explorer. Leave empty to use the plugin’s built-in default root label (typically “Root” or its translation).
Allowed file extensions
A comma-separated list of file extensions to show in the library, e.g. pdf,docx,xlsx. Leave empty to display all file types from the Google Drive folder. Extensions are matched case-insensitively.