Post Expiration Manager is a WordPress plugin that lets you set expiration dates on posts, automatically unpublishing, archiving, or moving them once they expire. Perfect for blogs, news sites, and any content-driven website needing automated content management.
- Set an expiration date and time for each post.
- Automatically unpublishes expired posts (moves them to "Draft").
- Supports custom expiration actions (e.g., unpublish, archive, delete).
- Compatible with the WordPress scheduling system to check expiration hourly.
- Date-time picker for easy selection of expiration date and time.
- Download the Plugin: Download the plugin as a ZIP from GitHub.
- Upload to WordPress:
- In your WordPress dashboard, go to Plugins > Add New.
- Click Upload Plugin and select the downloaded ZIP file.
- Click Install Now and activate the plugin.
- Verify Activation: You should see a new Post Expiration Date meta box in your post editor.
-
Set Expiration Date and Time:
- Go to Posts > Add New or edit an existing post.
- In the Post Expiration Date meta box, set the desired expiration date and time using the date-time picker.
- Save or update the post.
-
Automatic Expiration:
- Every hour, the plugin checks for posts that have reached their expiration date.
- Expired posts are automatically moved to "Draft" status.
-
Manual Trigger (Optional):
- If you want to manually trigger the expiration check, you can use a plugin like WP Crontrol to run the scheduled event
content_expiration_check
.
- If you want to manually trigger the expiration check, you can use a plugin like WP Crontrol to run the scheduled event
- WordPress 5.0 or later
- PHP 7.0 or later
- Date-Time Picker Not Showing: If the date-time picker is missing, ensure that JavaScript is enabled in your browser. Additionally, check for theme or plugin conflicts by deactivating other plugins temporarily.
- Cron Not Running: WordPress cron depends on site traffic. If your site has low traffic, consider setting up a real cron job on the server to ensure regular execution.
- Initial release with date-time expiration and automatic unpublishing.
Contributions are welcome! Please fork the repository and submit a pull request.
Enjoy using Post Expiration Manager? Star the project on GitHub and share with the community!