Auto Prune Posts
Auto Prune Posts
Description
Auto deletes expires (prunes) posts or pages after a certain amount of time. On a per category basis (single category, or all at once).
Handy if you want to have posts with a limited timeframe such as offers, coupons etc..
Posts will auto delete on a per category basis: single category OR all categories at once.
All (custom)post types are supported. (CPT support)
Will also trash post attachments.
Sends notification to site admin (can be turned off).
No cronjob needed 🙂
- Coding by: MijnPress.nl Mastodon profile More plugins
- Idea by Nostromo.nl
Installation
- Upload directory
auto_prune_poststo the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Visit Plugins menu to configure the plugin.
Faq
https://pluginsupport.mijnpress.nl/ or drop me a tweet to notify me of your support topic over here.
I always check my toots, so mention my name with https://mastodon.social/deck/@ramonfincken and your problem.
Reviews
Reliable way to delete old posts
By mquiggeorgia on August 21, 2024
This plugin works well to automatically delete old posts on a schedule. We use it to remove everything 2 years old and over to keep website from getting bogged down with stale posts. Thank you!
Works fine on WP 6.1.1
By Bat n Ball on December 6, 2022
Throws errors on activation.
By kenrichman on October 7, 2019
Good Job
By khizaralikhan on June 17, 2018
Lifesaver!
By angeljs on May 3, 2018
the one that works
By arroyo2 on August 5, 2017
good and simple
By yakisoba on March 30, 2017
Postman conflit
By cboseb on September 3, 2016
When I install the plugin I get this error:
Postman: wp_mail has been declared by another plugin or theme, so you won't be able to use Postman until the conflict is resolved.
No work
By drunkod on September 3, 2016
Warning Declaration of plugin_auto_prune_posts::addPluginSubMenu() should be compatible with mijnpress_plugin_framework::addPluginSubMenu($title, $function, $file, $capability = 10, $where = 'plugins.ph...') 1 wp-content/plugins/auto-prune-posts/auto-prune-posts.php:20 wp-settings.php
wp-settings.php:215 Core
Declaration of plugin_auto_prune_posts::addPluginContent($links, $file) should be compatible with mijnpress_plugin_framework::addPluginContent($filename, $links, $file, $config_url = NULL) 1 wp-content/plugins/auto-prune-posts/auto-prune-posts.php:20 wp-settings.php
wp-settings.php:215 Core
Deprecated Non-static method mijnpress_plugin_framework::is_admin() should not be called statically
Changelog
3.1.1
Bugfix: Re-added the framework
3.1.0
Change: Removed &prune=true GET option to force run prune using wp-admin as it is false-positively flagged ads CSS by pathstack. Now using a form post button.
3.0.0
Bugfix: XSS in POST types
2.0.0
Bugfix: Added nonces for admin forms (CSRF)
Bugfix: PHP 8 compatibility
1.8.0
Bugfix: PHP 8 compatibility
1.7.0
Bugfix: Menu conflict with bbpress due to permissions
1.6.6
Bugfix: Removed PHP notices
Added: Settings for max deletes per run, and amount between runs
1.6.5
Added: max of 600 deletes per call, 300 sec delay
1.6.4
Bugfix: Changed the init after WP rewrite, due to errors with W3 total cache
1.6.3
Bugfix: Better hook (plugins_loaded instead of wp)
Added: Earlier flush and 20 seconds timeout
1.6.2
Bugfix: All categories now shown when saved
1.6.1
Bugfix: All categories
1.6
Added: All categories support
Bugfix: Only get latest 50 posts (performance fix), every 30 seconds
Changed: Dropdown now on category name (sort)
1.5
Bugfix: Framework did not work on multisite, is_admin() problem.
If anyone could help me with that ? 🙂
1.1
Second release
Added: Custom post type support
Added: Trash OR force delete option
Added: Mail admin if post is deleted
Changed: Init method is now every 30 seconds, all posts are checked.
Added: If you add &prune=true in your admin plugin page the plugin will run manually (force run)
1.0
First release


