Skip to content
Sign in

DK Post Sync for Google Docs

Sync published posts to Google Docs so Gemini or an MCP integration can use your content as a knowledge base, without site access.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

This plugin is not affiliated with, endorsed by, or sponsored by Google LLC.

DK Post Sync for Google Docs keeps one Google Doc for every published post in a Google Drive folder you choose. The purpose is to give tools such as Gemini or an MCP integration a Google Docs copy of your site’s content to use as a knowledge base, without granting those tools access to the site itself. The Docs stay current as you publish, edit, unpublish, and delete posts, and they remain easy to read, search, and share from Google Drive.

Each Doc contains:

  • A Post Details table: title, URL, post ID, slug, status, published and modified dates, author, categories, tags, excerpt, SEO title, meta description, focus keyword and canonical URL (from Rank Math or Yoast SEO when either is active), the featured image and its alt text, and the word count.
  • The featured image.
  • The post content, rendered the same way your site renders it. Scripts, forms, and styling are removed, and embeds become links.
  • Images in This Post: every image URL with its alt text.

You can also add an optional HTML header at the top of every Doc (Settings DK Post Sync Settings). Leave it blank for no header. The placeholders {post_title}, {permalink}, and {date} are replaced for each post.

How syncing works

  • Post published: a Doc is created, or the existing Doc is restored from the Drive trash.
  • Published post updated (content, title, tags, categories, featured image, or SEO fields): the Doc’s content is replaced.
  • Post unpublished, made private, password-protected, or trashed: the Doc is moved to the Drive trash.
  • Post deleted permanently: the Doc is moved to the Drive trash.

Saving a post never calls Google directly. The post is added to a queue, and WP-Cron sends the queue to Drive about 20 seconds later, then every 5 minutes. Settings DK Post Sync Sync Sync All Posts queues everything and works through the queue while the page is open. Posts that haven’t changed are skipped.

Nothing happens until you connect Google

The plugin uses your own Google Cloud OAuth client, so your Google data goes only between your site and Google. Until an administrator saves a client and connects a Google account:

  • A notice on the plugin’s screen and on the Plugins screen links to the setup tab.
  • Every sync control is greyed out and disabled.
  • The server refuses every sync request, nothing is queued or scheduled, and no request is sent to Google.

Once you’re connected, the Google Connection tab shows the connected account’s email address and the connection status. If Google revokes or expires the connection, syncing stops, post changes keep queueing, and a notice asks you to reconnect.

Drive access

By default the plugin asks only for the drive.file scope. With it, the plugin can see and change only the files and folders it creates, so it creates its own folder for your Docs. If you need Docs written into a folder you made yourself, or one in a shared drive, you can switch to full Google Drive access (the drive scope) on the Google Connection tab.

Privacy and external services

This plugin connects to Google services, and only after an administrator sets up the connection. It does not contact any other service, and it never sends data to DK New Media.

  • Google OAuth 2.0 (accounts.google.com, oauth2.googleapis.com): used to sign in, get and refresh access tokens, and revoke access when you disconnect or uninstall. Sent: your OAuth client ID and secret, the authorization code, and the refresh token.
  • Google Drive API (www.googleapis.com): used to read the connected account’s email address and name, create the folder, and create, update, find, and trash the Docs. Sent: each published post’s title, content, URL, dates, author display name, categories, tags, excerpt, SEO fields, image URLs, and alt text. Posts that are not published, private, or password-protected are never sent.

Requests happen when an administrator connects, disconnects, saves or creates a folder, or runs a sync, and when WP-Cron processes the queue in the background.

Google’s terms and privacy policy apply:

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

The OAuth client secret and the Google token are stored in your WordPress database (in options that are not autoloaded) and are never shown on a page. You can keep the client ID and secret out of the database by defining them in wp-config.php (see the FAQ).

Google, Google Docs, Google Drive, and Gemini are trademarks of Google LLC.

This plugin is developed by DK New Media. Documentation and updates are published on Martech Zone.

Written by Joobi from the project's own listing. See the source page

backupexportgoogle docsgoogle drivesync
24 Nov 2026
Version 1.0.1 released. Not scanned yet.

1.0.1

  • Describes the plugin’s purpose: syncing posts to Google Docs so Gemini or an MCP integration can use the content as a knowledge base, without access to the site.
  • Optional HTML header prepended to every synced Doc, with {post_title}, {permalink}, and {date} placeholders.
  • Adds DK New Media and Martech Zone credit links.

1.0.0

  • First public release.
  • Google OAuth 2.0 connection with your own client (authorization code flow with state and PKCE, offline access with token refresh, revocation on disconnect).
  • A Google Connection tab with setup steps, the redirect URI and a Copy button, and the connected account and status.
  • Every sync feature stays disabled, with a notice, until the connection is set up and working.
  • Uses the drive.file scope by default, with optional full Drive access.
  • Creates its own Drive folder, or uses an existing one with full access.
  • Reads SEO fields from Rank Math or Yoast SEO.
24 Nov 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)