pantheon-systems / pantheon-content-publisher-wordpress
Publish WordPress content from Google Docs with Pantheon Content Cloud.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 4
Open Issues: 36
Type:wordpress-plugin
pkg:composer/pantheon-systems/pantheon-content-publisher-wordpress
Requires
- php: >=8.1
- pantheon-systems/pcc-php-sdk: 1.1.1
Requires (Dev)
- dev-main
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- v1.3.0
- v1.2.7
- v1.2.6
- 1.2.5.x-dev
- v1.2.5
- 1.2.4.x-dev
- v1.2.4
- 1.2.3.x-dev
- v1.2.3
- 1.2.2.x-dev
- v1.2.2
- 1.2.1.x-dev
- v1.2.1
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- v0.10.0
- v0.9.10
- v0.9.9
- dev-documentation/1.3.5
- dev-release-1.3.5
- dev-bugfix/merge-fix-pr-193-200-201
- dev-enhancements/4782-support-for-cp-metadata-acf
- dev-enhancements/5421-media-embed-smart-components
- dev-enhancements/5326-support-for-custom-post-types
- dev-enhancements/5421-media-embed-smart-component
- dev-DELENG-365-update-catalog-workflow
- dev-fix/phpcs-issues
- dev-dependabot/github_actions/actions/cache-5.0.3
- dev-dependabot/composer/composer-73a4f1667a
- dev-my-local-fix
- dev-dependabot/npm_and_yarn/npm_and_yarn-fefc28e289
- dev-release
- dev-experiments/smart-components-2
- dev-release_1.3.3
- dev-addComposerinBuild
- dev-readme-update
- dev-readme-update-ordering
- dev-enhancement/update-readme-markup-installation-instructions
- dev-origin/merge-wp-submission
- dev-wp-submission
- dev-origin/queryperformancefix
- dev-enhancements/include-composer-json-in-release-assets
- dev-enhancements/update-prefixes-to-cpub
- dev-enhancements/sanitize-and-verify
- dev-dependabot/npm_and_yarn/npm_and_yarn-080523f2f9
- dev-wp-media-assets
- dev-wp-sub--readme-update
- dev-wp-sub--comment-line
- dev-wp-sub--update-url
- dev-db-migration-script
- dev-new-repo-name
- dev-ag-pcc-2314-wp-posts-should-be-assigned-a-defaut-author-on-creation
- dev-ag-pcc-2314-wp-posts-should-be-assigned-a-defaut-author
- dev-stevector-patch-1
- dev-update-repo-name
- dev-ag-pcc-2276-wordpress-duplicating-posts-in-draft-published-states
- dev-fix-translation-strings
- dev-wp-validation
- dev-ag-resolve-lint-warnings
- dev-rm-for-wp-slug
- dev-Wordpress-release
- dev-no-direct-access-file
- dev-no-core-file-calls
- dev-ag-pcc-2255-add-support-for-drafts-and-version-ids
- dev-wporg-assets
- dev-Update-prefix-name
- dev-update-codeowners
- dev-update-libraries
- dev-php-comp84
- dev-ag-pcc-2157-responsive-tables
- dev-feature/acf-metadata-mapping
- dev-ag-disable-collection-url-verification
- dev-ag-handle-webhook-publish-event
- dev-ag-pcc-2132
- dev-PCC-2004-fix-styles-in-page
- dev-feature/disconnect-button
- dev-kevinstubbs-patch-1
- dev-patch/update-deps
- dev-fix/improve-stability
- dev-chore/cleanup-files
This package is auto-updated.
Last update: 2026-03-03 22:46:00 UTC
README
Contributors: getpantheon, a11rew, anaispantheor, roshnykunjappan, mklasen, jazzs3quence, swb1192
Tags: pantheon, content, google docs
Requires at least: 5.7
Tested up to: 6.9
Stable tag: 1.3.5-dev
Requires PHP: 8.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Pantheon Content Publisher
Publish WordPress content from Google Docs with Pantheon Content Cloud.
Report bug
·
Request feature
·
Check out PCC Docs
Table of contents
- Table of contents
- Quick start
- Custom post types
- Development
- Repository Actions
- Requirements
- Bugs and feature requests
- Documentation
- Versioning
- Changelog
Quick start
The Pantheon Content Publisher plugin can be installed like any other WordPress Plugin, from your WordPress Dashboard, go to Plugins -> Add Plugin and search for: Pantheon Content Publisher, click the Install Now button and then click Activate.
After the plugin is active, set up your connection to Pantheon Content Publisher and Google Drive via the settings page in the WordPress admin dashboard.
Alternately you can download and install the plugin manually:
or
- Clone the repo:
git clone https://github.com/pantheon-systems/pantheon-content-publisher-wordpress.gitin yourwp-content/pluginsfolder
or soon
- Install via Composer:
composer require pantheon-systems/pantheon-content-publisher-wordpress
If installing from source, make sure to follow the build instructions in the Development section below
Custom post types
The plugin supports publishing content to any public post type registered on your WordPress site, not just the default Post and Page types.
For more details on configuring WordPress with Content Publisher, see the WordPress Tutorial.
Selecting a post type
When creating or editing a collection in the plugin settings, you can choose which WordPress post type the collection's documents should be published as. The dropdown lists all public post types available on your WordPress site.
You can also select "Chosen by the author" to allow document authors to control the post type on a per-document basis using the wp-post-type metadata field.
The wp-post-type metadata field
When a collection is configured with "Chosen by the author", the plugin reads a metadata field called wp-post-type from each document to determine which post type to use.
To set the post type for a document, add a metadata field in the Content Publisher dashboard (or the Google Docs add-on) with the system name wp-post-type. The value should be the slug of the desired post type (e.g. post, page).
The list of allowed values must be configured manually by the administrator in the Content Publisher dashboard or the Google Docs add-on. The plugin does not automatically synchronize the available post types.
Fallback behavior
The plugin falls back to the default post type in the following cases:
- The collection is set to "Chosen by the author" but the document does not have a
wp-post-typemetadata field. - The
wp-post-typemetadata field is present but empty. - The
wp-post-typevalue does not match any public post type registered on the WordPress site.
Changing the post type setting on a collection only affects future publishes and does not modify previously published content.
Development
composer i && npm ito install dependencies.npm run watch/npm run dev/npm run prodto build assets. Since version 1.3.0npm run build:viteto build assets and dist/build folder.- Read through our contributing guidelines for additional information. Included are directions for opening issues, coding standards and miscellaneous notes.
Repository Actions
This repository takes advantage of the following workflows to automate the release & testing processes:
These workflows will build a release draft and keep it up-to-date as new PRs are merged. Once a release is published, a
ready-to-install zip file will be generated and attached to the newly-published release.
To take advantage of these automations, make sure to read the available config files and workflow recipes, available in
the .github folder in the root of this repository.
Examples: (read the config files for full configuration)
feature/<branch-name>orfeat/<branch-name>adds thefeaturelabel to your PR- PRs labeled
featurewill be categorized in the "🚀 Features" section of the release - PRs labeled
major/minor/patchwill bump the major/minor/patch version number of the release
Requirements
Pantheon Content Publisher is dependent on:
- Minimum PHP version 8.1
- Minimum WordPress version 5.7
Bugs and feature requests
Have a bug or a feature request? Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.
Documentation
Documentation is available at pcc.pantheon.io/docs.
Versioning
For transparency into our release cycle and in striving to maintain backward compatibility, Pantheon Content Publisher is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we adhere to those rules whenever possible.
Changelog
You may find changelogs for each version of Pantheon Content Publisher released in the Releases section of this repository.