Publication Checklist #9 in Content & Publishing
Run checks and enforce conditions before posts are published. Built and designed for the WordPress block editor.
★ 126stars
172kcomposer installs
11forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/humanmade/publication-checklist/archive/refs/heads/main.zipAlso on Packagist as humanmade/publication-checklist:
composer require humanmade/publication-checklistFrom the readme
Publication Checklist
Run checks and enforce conditions before posts are published. Built and designed for the WordPress block editor.
Publication Checklist provides a framework for building out prepublish checks, with flexibility to fit your workflows.
Demo Plugin
If you prefer to get a boilerplate plugin to add checks and start playing with existing code directly you can download, install and activate the demo plugin available here:
https://github.com/humanmade/demo-publication-checklist
Creating checks
The core of a check is a function that receives the post's data and meta, and returns a Status object. This status object indicates whether publish should be blocked or not.
For example, to enforce setting a value for the "foo" meta key:
Checks are registered via the Altis\Workflow\PublicationChecklist\registerprepublishcheck function with a unique ID. This function should be called on the altis.publication-checklist.registerprepublishchecks action.
Note: the altis.publication-checklist.registerprepublishchecks action runs on the pluginsloaded hook so you should make sure your addaction() call is run as soon as your custom plugin file is included or in your theme functio
Read the full README on GitHub →