Download the PHP package humanmade/propose-draft-date without Composer
On this page you can find all versions of the php package humanmade/propose-draft-date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download humanmade/propose-draft-date
More information about humanmade/propose-draft-date
Files in humanmade/propose-draft-date
Package propose-draft-date
Short Description Block Editor plugin to permit contributing users to set a proposed publishing date
License GPL-2.0-or-later
Informations about the package propose-draft-date
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.
proposed_date.supported_post_types
(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.
proposed_date.should_accept_proposal
(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 proposed_date.date_label
filter to ensure you show the correct date value to contributors.)
proposed_date.date_label
(JS filter)
Frontend JS filter to determine what date value to show when rendering the proposed date within Document sidebar.
Example: Always show the proposed date, when present.
proposed_date.is_floating
(JS filter)
Override whether to consider the post date is considered to be "floating" (that is to say, if the post is meant to be published "Immediately").
Example: Force "floating" date status so that a proposed date will be displayed on the frontend even if an actual scheduled date value is present.
proposed_date.supported_statuses
(JS filter)
Customize the list of post statuses which support a proposed date value.
Release Process
Given a clean main
branch with an updated version number in plugin.php
, follow these steps to build and tag a release: