Title: Brasth Document Sync for Google Docs
Author: Brasth
Published: <strong>2026-يىلى 15-ئىيۇن</strong>
Last modified: 2026-يىلى 16-ئىيۇن

---

قىستۇرما ئىزدە

![](https://ps.w.org/brasth-document-sync-for-google-docs/assets/banner-772x250.
png?rev=3573231)

![](https://ps.w.org/brasth-document-sync-for-google-docs/assets/icon.svg?rev=3573231)

# Brasth Document Sync for Google Docs

 يازغۇچى [Brasth](https://profiles.wordpress.org/canvilled/)

[چۈشۈر](https://downloads.wordpress.org/plugin/brasth-document-sync-for-google-docs.1.0.2.zip)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/brasth-document-sync-for-google-docs/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/brasth-document-sync-for-google-docs/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/brasth-document-sync-for-google-docs/#installation)
 * [ئىجادىيەت](https://ug.wordpress.org/plugins/brasth-document-sync-for-google-docs/#developers)

 [قوللاش](https://wordpress.org/support/plugin/brasth-document-sync-for-google-docs/)

## چۈشەندۈرۈش

Brasth Document Sync for Google Docs helps editorial teams use Google Docs as the
source of truth while publishing clean WordPress content. Site owners provide their
own Google OAuth web client, each WordPress user connects their own Google account,
and authorized users can browse accessible Google Docs, link a document to a post
or page, and sync content into WordPress.

The plugin exports Google Docs as HTML ZIP packages, imports embedded images into
the WordPress Media Library, rewrites image URLs, sanitizes the resulting HTML, 
and converts common document structures to Gutenberg block markup. If Google blocks
a large HTML ZIP export, Brasth Document Sync retries through the Google Docs API
fallback before changing post content.

Features include:

 * Self-managed Google OAuth setup wizard.
 * Server-side Google Drive document browser for My Drive and shared drives.
 * Advanced Google Docs URL and raw file ID linking.
 * Background sync through WP-Cron with source status and diagnostic logs.
 * One-way Google Docs to WordPress sync for posts, pages, and enabled public custom
   post types.
 * Media import for images exported from Google Docs.
 * Gutenberg block markup for common headings, paragraphs, lists, tables, and images.
 * Uninstall cleanup for settings, encrypted user tokens, and scheduled events.

#### External Services

Brasth Document Sync connects to Google services only after a site administrator
saves a self-managed Google OAuth client ID and client secret and a WordPress user
connects their Google account.

This plugin sends requests to these Google services:

 * Google OAuth 2.0 endpoints, to authorize a user’s Google account and refresh 
   access tokens.
 * Google Drive API, to list visible Google Docs, shared drives, folders, document
   metadata, and HTML ZIP exports.
 * Google Docs API, to read document structure when the large-document fallback 
   is needed.

Data sent to Google can include OAuth client details supplied by the site owner,
OAuth authorization codes, refresh-token requests, connected-user access tokens,
Drive file IDs, folder IDs, shared-drive IDs, search text entered in the Drive browser,
pagination tokens, and document export/read requests.

Data received from Google can include the connected Google account email address,
OAuth tokens, Google Docs titles, metadata, modified time, version identifiers, 
document export content, and image content URLs needed to import media into WordPress.

Google’s terms and privacy documents apply to these services:

 * Google Privacy Policy: https://policies.google.com/privacy
 * Google API Services User Data Policy: https://developers.google.com/terms/api-
   services-user-data-policy
 * Google APIs Terms of Service: https://developers.google.com/terms

Brasth Document Sync does not send Google data to a Brasth Document Sync vendor-
hosted service in this release.

### Privacy

Brasth Document Sync stores site-level Google OAuth client settings, encrypted per-
user Google tokens, connected Google account email addresses, linked Google document
metadata, source sync status, diagnostic sync events, and imported attachment metadata
in the WordPress database.

During document browsing and sync, Brasth Document Sync communicates with Google
OAuth, Google Drive API, and Google Docs API as described in the External Services
section. Imported Google Docs images are stored in the WordPress Media Library. 
Synced WordPress posts and imported media remain on the site until a user with sufficient
permission changes or deletes them.

Uninstall removes plugin settings, encrypted user Google tokens, and scheduled cron
events. Linked post metadata is retained by default; define `DOCSYNC_WP_FULL_UNINSTALL`
or return true from the `docsync_wp_full_uninstall` filter to remove Brasth Document
Sync post metadata. Synced posts and imported media are not deleted automatically.

### Source And Build Instructions

Human-readable frontend source is included in `resources/`. Built assets are included
in `build/`.

To rebuild the admin assets from source:

 1. Install PHP dependencies with `composer install`.
 2. Install frontend dependencies with `pnpm install --frozen-lockfile`.
 3. Build assets with `pnpm build`.

The build uses Vite and writes `build/manifest.json`, `build/manifest.post-sync.
json`, and hashed CSS/JS assets. Runtime React is provided by WordPress through `
wp-element`.

## ئورنىتىش

 1.  Upload the `brasth-document-sync-for-google-docs` folder to `/wp-content/plugins/`,
     or install the plugin ZIP through Plugins > Add New > Upload Plugin.
 2.  Activate Brasth Document Sync from the WordPress Plugins screen.
 3.  In Google Cloud, create or select a project.
 4.  Enable the Google Drive API and Google Docs API.
 5.  Configure the OAuth consent screen for the WordPress site users.
 6.  Create an OAuth 2.0 Web application client.
 7.  Add the authorized redirect URI shown in the Brasth Document Sync setup wizard.
 8.  In WordPress admin, open Brasth Document Sync and save the OAuth client ID and
     client secret.
 9.  Connect a Google account, browse or paste a Google Doc, and link it to a WordPress
     post or page.

## FAQ

### Does Brasth Document Sync provide a hosted Google connector?

No. Version 1.0.1 uses self-managed Google OAuth. The site owner supplies the Google
Cloud project and OAuth web client.

### Which Google APIs are required?

Enable both the Google Drive API and Google Docs API in the same Google Cloud project
used by the OAuth client.

### Which Google OAuth scope is used?

Brasth Document Sync uses `https://www.googleapis.com/auth/drive.readonly` so connected
users can browse and sync Google Docs their account can read.

### Does sync delete WordPress posts?

No. Sync updates the linked post content, and uninstall never deletes synced posts.
Full post-meta cleanup is available only through the documented full-uninstall constant
or filter.

### What happens on low-traffic sites?

Manual and scheduled background syncs use WP-Cron. Low-traffic sites or sites with`
DISABLE_WP_CRON` should configure a real server cron job that calls `wp-cron.php`.

### Are Google OAuth secrets and user tokens stored safely?

Brasth Document Sync encrypts the site OAuth client secret and per-user Google tokens
with WordPress salts before storage. Rotating WordPress salts invalidates those 
credentials and users must reconnect.

## باھالاشلار

بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.

## تۆھپىكار ۋە ئىجادكار

«Brasth Document Sync for Google Docs» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر
بۇ قىستۇرمىغا تۆھپە قوشقان.

تۆھپىكار

 *   [ Brasth ](https://profiles.wordpress.org/canvilled/)

[«Brasth Document Sync for Google Docs» نى تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/brasth-document-sync-for-google-docs)

### ئىجادىيەتكە قىزىقامسىز؟

[كودقا كۆز يۈگۈرتۈپ](https://plugins.trac.wordpress.org/browser/brasth-document-sync-for-google-docs/)،
[SVN خەزىنە](https://plugins.svn.wordpress.org/brasth-document-sync-for-google-docs/)
تەكشۈرۈپ ياكى [RSS](https://plugins.trac.wordpress.org/log/brasth-document-sync-for-google-docs/?limit=100&mode=stop_on_copy&format=rss)
ئارقىلىق [ئىجادىيەت خاتىرىسى](https://plugins.trac.wordpress.org/log/brasth-document-sync-for-google-docs/)
گە مۇشتەرى بولغىلى بولىدۇ.

## ئۆزگىرىش خاتىرىسى

#### 1.0.1

 * Aligned plugin version metadata for the 1.0.1 GitHub release package.

#### 1.0.0

 * Initial WordPress.org-ready release.
 * Added self-managed Google OAuth setup.
 * Added Google Drive document browser and advanced URL/file ID linking.
 * Added one-way Google Docs to WordPress sync for posts, pages, and enabled public
   custom post types.
 * Added HTML ZIP import, image sideloading, Gutenberg block conversion, background
   sync, and diagnostic logs.

## Meta

 *  Version **1.0.2**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **19 سائەت بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **10 دىن ئاز**
 *  WordPress نەشرى ** 6.4 ياكى يۇقىرى **
 *  **7.0** دا سىنالغان
 *  PHP نەشرى ** 8.1 ياكى يۇقىرى **
 *  تىل
 * [English (US)](https://wordpress.org/plugins/brasth-document-sync-for-google-docs/)
 * بەلگە
 * [blocks](https://ug.wordpress.org/plugins/tags/blocks/)[content sync](https://ug.wordpress.org/plugins/tags/content-sync/)
   [editorial workflow](https://ug.wordpress.org/plugins/tags/editorial-workflow/)
   [google docs](https://ug.wordpress.org/plugins/tags/google-docs/)[google drive](https://ug.wordpress.org/plugins/tags/google-drive/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/brasth-document-sync-for-google-docs/advanced/)

## دەرىجە

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/brasth-document-sync-for-google-docs/reviews/#new-post)

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/brasth-document-sync-for-google-docs/reviews/)

## تۆھپىكار

 *   [ Brasth ](https://profiles.wordpress.org/canvilled/)

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/brasth-document-sync-for-google-docs/)