Linux 软件免费装
Banner图

Brasth Document Sync for Google Docs

开发者 canvilled
更新时间 2026年6月22日 20:34
PHP版本: 8.1 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

blocks google-docs content-sync google-drive editorial-workflow

下载

1.0.3 1.0.5 1.0.2 1.0.4 1.0.1

详情介绍:

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: 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: 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: Brasth Document Sync does not send Google data to a Brasth Document Sync vendor-hosted service in this release.

安装:

  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.

屏幕截图:

  • Sources list with filters and bulk sync controls.
  • Drive browser with breadcrumbs, search, and folder navigation.
  • Post edit screen side meta box for link, sync now, and detach actions.
  • Sync logs with diagnostic events and source status filters.

常见问题:

Does Brasth Document Sync provide a hosted Google connector?

No. This release 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.

更新日志:

1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0