Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/dol-lab/no-backdating-posts/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
No Backdating Posts
A WordPress plugin that prevents backdating of posts and pages.
This helps maintain content integrity by ensuring published dates can't be modified to dates earlier than the original publication date.
Features
- Prevents backdating of posts and pages by default
- Configurable grace period from now (default: 1 hour). So you can set the time of the post to 8:00 when the current time is 9:00.
- Support for Gutenberg
- Warning notifications when backdating is attempted. The date is automatically set to the "earliest allowed".
- Capability-based permissions
Configuration
Capabilities
- backdateposts - Allow backdating for all post types
- backdate{posttype} - Allow backdating for specific post type (e.g., backdatepage)
Filters
- nobackdatingposttypes - Array of post types to prevent backdating (default: ['post', 'page'])
- nobackdatinggraceperiod - Grace period in seconds (default: 1 hour)
License
GPL v3 or later - https://www.gnu.org/licenses/gpl-2.0.html