manifest / unclassified / no-backdating-posts
No Backdating Posts
Prevents backdating of posts (and pages by default).
by Vitus Schuhwerk · github.com/dol-lab/no-backdating-posts · website
★ 0stars
0forks
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/dol-lab/no-backdating-posts/archive/refs/heads/main.zipDeclares an update source (https://github.com/dol-lab/no-backdating-posts), so updates arrive through the plugin's own updater.
From the readme
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