[WordPress] 外掛分享: 4WP Drive

首頁外掛目錄 › 4WP Drive
WordPress 外掛 4WP Drive 的封面圖片
全新外掛
安裝啟用
尚無評分
8 天前
最後更新
問題解決
WordPress 6.4+ PHP 7.4+ v1.1.0 上架:2026-06-13

內容簡介

4WP Drive 外掛將 Google Drive 文件工作流程與 WordPress 連結,讓編輯團隊能夠輕鬆地將 Google Docs 文件轉換為草稿文章或更新現有文章,無需複製與粘貼,提升內容管理效率。

【主要功能】
• Google Drive OAuth 連接管理員帳號,令牌加密存儲
• 文件夾同步,自動掃描 incoming/ 新增 Google Docs 和圖片
• 管理員收件箱,預覽 HTML,導入為草稿或更新現有文章
• 文件模板,前置資料映射至文章欄位,內容保持格式
• 可配置欄位映射,支持標題、分類、SEO 元資料等
• 更新現有內容,從 Drive 文件替換文章內容

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「4WP Drive」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

4WP Drive connects a Google Drive folder workflow to WordPress: writers drop documents in Drive, editors review them in an admin Inbox, and approved content becomes draft posts or updates existing posts and pages—without copy-paste.
A plugin by 4wp.dev.
Learn more, workflow details, and comparisons on the plugin page at 4wp.dev/plugin/4wp-drive/.
Perfect for

Editorial teams that draft in Google Docs but publish in WordPress
Agencies with a shared Drive incoming/ folder and a review step before publish
Content pipelines that need structured front-matter (title, slug, categories, SEO fields) parsed from the doc header
Sites that want API credentials stored encrypted and OAuth handled server-side

How it works

Install and activate 4WP Drive.
Create Google OAuth credentials and connect Drive in Storage sources.
Set your Drive root folder ID; the plugin uses incoming/ and published/ subfolders.
Drop a Google Doc (with optional image) into incoming/ or run Sync.
Open Inbox → Preview → Import as Draft, Update existing post, or Reject.
On import, files move to published/ in Drive.

Key features

Google Drive OAuth — connect an admin Google account; tokens stored encrypted
Folder sync — scan incoming/ for new Google Docs and images
Admin Inbox — preview HTML, import as draft, update an existing post or page, or reject
Document template — front-matter lines before a separator (--- or =====) map to post fields; body becomes post content (headings, lists, bold preserved)
Configurable field map — title, slug, categories, tags, author, dates, SEO meta (when supported)
Featured image — import image from the same Drive subfolder
Update existing content — search and pick a post or page, then replace its content from the Drive document
REST API + WP-CLI wp forwp-drive sync for manual sync
Roadmap sources — GitHub Markdown/MDX and additional storage providers registered for future releases

Privacy
OAuth tokens and Google API credentials are stored in your WordPress database (encrypted). Document content is fetched from Google Drive only when an administrator runs sync or import. No visitor-facing tracking.
4WP is our project brand; the letters “WP” appear only as part of that brand name, not as a reference to WordPress. This plugin is not affiliated with, endorsed, or sponsored by WordPress.
Source code: github.com/4wpdev/4wp-drive
Plugin overview and FAQ: 4wp.dev/plugin/4wp-drive/
Development
Human-readable PHP source is in the public GitHub repository above. The plugin ZIP includes src/ (PSR-4 autoload via src/Autoload.php when vendor/ is absent). No npm build step — admin scripts ship as plain JS in assets/.
Run tests: composer install && composer test && composer run lint
External services
This plugin connects to Google services when an administrator configures OAuth and syncs or imports documents.
Google OAuth 2.0
Used to authorize access to the connected Google account’s Drive files.

Authorization URL: https://accounts.google.com/o/oauth2/v2/auth
Token URL: https://oauth2.googleapis.com/token
Scope: https://www.googleapis.com/auth/drive

When an administrator clicks Connect Google Drive, the browser is redirected to Google to sign in and grant access. WordPress stores refresh and access tokens encrypted in the site database. Client ID and Client Secret are stored encrypted (or may be defined in wp-config.php).
Google terms: https://policies.google.com/terms
Google privacy: https://policies.google.com/privacy
Google Drive API
Used to list folders, download Google Docs (export as HTML/DOCX), and move files after import.

API hostname: https://www.googleapis.com/drive/v3/ (and related export endpoints)

Requests are made server-side only when an administrator runs sync, preview, or import. Document metadata and file content are processed on your server to create WordPress posts.
Google Drive API terms follow Google Cloud / Google API Services terms linked from the Google Cloud Console.

延伸相關外掛

文章
Filter
Mastodon