=== Connect Drive - File Manager for Google Drive ===
Contributors: wpcloudconnect, ahmedakash10
Tags: google drive, file manager, gallery, embed, media library
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect Google Drive to WordPress to browse, uploads, manage, display and share files with galleries, and different modules on your WordPress site.

== Description ==

Connect your Google Drive to WordPress to browse, uploads, manage, display and share files with galleries, and different modules on your WordPress site.

Use it to:

* Browse and manage Google Drive files from WordPress.
* Build file browsers, lists, galleries, sliders, media players, and embeds.
* Display selected files or folders on the front end.
* Let visitors or team members upload files into allowed folders.
* Connect your own Google OAuth app and control the permission scope you grant.
* Keep tokens and plugin settings on your own WordPress site.

= Privacy and data handling =

Connect Drive does not store your Google Drive files on our servers.

Your site connects directly to Google to request authorization, fetch files, generate previews, and perform actions you approve. Access and refresh tokens are stored in your WordPress database so the plugin can continue working after authorization.

If you enable front-end modules, the plugin may also generate secure preview, download, and thumbnail URLs on your site so approved visitors can access the files you choose to share.

= Google Drive permissions =

You can choose the access level that fits your setup:

* Application Folder: access only to the plugin folder created in Drive.
* Specific Folders: access only to the folders you explicitly select.
* Entire Drive: access to the connected Drive account for full browsing and management features.

Google shows the exact permissions on the authorization screen before access is granted. You can revoke access at any time from your Google account or by disconnecting the account in WordPress.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/cloudmaster-connect-drive` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the `Plugins` screen in WordPress.
3. Open `Connect Drive` from the WordPress admin menu.
4. Enter your Google OAuth Client ID and Client Secret in the plugin settings.
5. Connect your Google account and create the modules you want to use.

== Frequently Asked Questions ==

= Do I need my own Google API credentials? =

Yes. You should connect your own Google OAuth app and Google Drive account.

= Can I show Google Drive files on the front end? =

Yes. You can create modules for browsers, file lists, galleries, embeds, sliders, uploads, and media displays.

= Where are tokens and settings stored? =

They are stored in your WordPress site database.

= Does the plugin store my files on your servers? =

No. File access happens between your WordPress site and Google.

== External services ==

= Google APIs =

This plugin connects to Google APIs so it can authorize your Google account and then browse, preview, upload, download, stream, embed, and manage Google Drive files from your WordPress site.

Data sent to Google can include your OAuth client ID, OAuth client secret, authorization code, access token, refresh token, selected Google Drive file and folder IDs, requested Drive scopes, and file actions you trigger from the plugin. This data is sent only when you connect an account, refresh authorization, or actively use Google Drive features that require Google API access.

Google provides this service:
Terms of Service: https://policies.google.com/terms
Privacy Policy: https://policies.google.com/privacy

= Gravatar =

This plugin can request avatar images from Gravatar at gravatar.com, a service provided by Automattic, for WordPress users shown inside the plugin interface.

When an avatar is displayed, the plugin generates a request to gravatar.com using an MD5 hash of the user's email address. This happens only when avatar images are needed in the plugin interface, such as user activity, selections, or admin-facing account displays.

Terms of Service: https://gravatar.com/site/terms-of-service
Privacy Policy: https://automattic.com/privacy/

== Changelog ==

= 1.0.0 =

* Initial release.
