Propose Draft Date
A plugin to propose a publish date while writing posts as a contributing author.
★ 4stars
62kcomposer installs
1forks
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/propose-draft-date/archive/refs/heads/main.zipAlso on Packagist as humanmade/propose-draft-date:
composer require humanmade/propose-draft-dateFrom the readme
Propose Draft Date
This is a WordPress plugin that provides an interface within the block editor for contributing authors (and other roles without the ability to schedule or publish posts) to select a proposed date for the post. That proposed date will be shown in previews of the post by filtering the "floating" post date, and will take effect when the post is published.
Filters
The following filters are available to modify the behavior of this plugin.
proposeddate.supportedposttypes (PHP filter)
Server-side PHP filter to modify which post types can take a proposed date.
Example: Add proposed date support for a custom post type, and remove it from core pages.
proposeddate.shouldacceptproposal (PHP filter)
Server-side PHP filter to determine, based on the old and new post status and the post object transitioning between those statuses, whether to check for a proposed date and apply it if found.
Example: Accept proposed dates when transitioning to a custom status.
Example: Always accept proposed dates when present, regardless of other circumstances. (If you do this you should also use the JS-side proposeddate.datelabel filter to ensure you show the correct date value to con
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.3.4 | Jan 6, 2023 | — | — |