How to Create a Custom Requirement for the Content Checklist
The Content Checklist add-on for PublishPress is perfect for anyone that wants to create a consistent experience with their WordPress content. If you publish a lot of content, it can be hard to make sure every post and page has the features you need.
Using the Content Checklist, you can define tasks that must be completed before authors are able to publish content. Here's what a typical set of requirements might look like.
Today, we've made it easier to create your own custom requirements to expand the Content Checklist.
Please note: this tutorial will require you to write some code. If you would prefer to use the PublishPress admin interface, please follow these instructions.
We've released a sample plugin on Github called the PublishPress Checklist Plugin Bootstrap. This plugin will automatically check that authors have included the word “PublishPress” in their content. The plugin is well commented throughout and will walk you through the process of creating a new requirement.
- This plugin can be downloaded and installed:
- Publish this new plugin and an extra requirement will become in the PublishPress Settings: “”Say PublishPress” in the content”.
If this requirement is enabled, it will automatically search the text of your content to make sure it contains the world “PublishPress”. It will search for both whole words, and partial words. If it's not present, users will see this warning:
If your content does contain that word “PublishPress”, you'll see this message:
Please feel free to download and experiment with this plugin. If you have any questions, we're here for you: email@example.com.