Hi, I am using your Auto-Prune plugin which is working great even though it has not been updated recently, so I am not sure if you are actively supporting it. I would be happy to buy you multiple cups of coffee if you could add a way exclude by tag, while including by category. We have a tag for “ongoing” which is applied to posts that should never be auto-purged, so I modified the query in your plugin as follows:
// Do only the last 50 (by date, for 1 cat)
$myposts = get_posts('category=' . $cat_id.'&tag__not_in => array(3194)&post_type='.$the_type.'&numberposts='.$this->conf['settings']['max_reads_in_run']. '&order=ASC&orderby=post_date');
which is probably totally wrong as I am not a coder ;-( Is there a better way to do this? I’d be happy to offer you $50 USD in order to make this change to the plugin so this could be set in the admin… Thanks for your help and thanks for writing the plugin!
]]>hello,
whay is ths happening only when I use your plugin WordPress database error Duplicate entry ‘73983’ for key ‘PRIMARY’ for query INSERT INTO wp_rank_math_internal_meta
(object_id
, internal_link_count
, external_link_count
) VALUES (73983, ‘0’, ‘0’) made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘after_setup_theme’), WP_Hook->do_action, WP_Hook->apply_filters, plugin_auto_prune_posts_activation, plugin_auto_prune_posts->prune, plugin_auto_prune_posts->delete_post_and_attachments, wp_delete_post, do_action(‘delete_post’), WP_Hook->do_action, WP_Hook->apply_filters, RankMath\Links\Links->delete_post, RankMath\Links\Storage->update_link_counts, RankMath\Links\Storage->save_meta_data
I see it’s possible to add other post types, does this include WooCommerce “Products”?
I’ve tried entering “products” as the type , but after I don’t see any way to choose a category.
Plugin is not compatible with PHP 8.0+. Site crash resolved when plugin was deactivated.
]]>Hey Ramon,
Awesome plugin! I’m intending to use this on a site with 79,000+ posts (yes, really) and my client doesn’t want to delete nor change the post_status
to be trash
but instead set it to draft
.
I’ve poked around in the plugin code but couldn’t see an obvious way to set the status. Is there a function I can add to my theme or a line number in the plugin files you can point me to in order to control the post.
Many thanks in advance for your guidance. Cheers!
]]>What about the feature image or media attachments to the post .. does it be deleted too?
]]>Hello All,
Getting below error msg on web site.
I am newbie to WP, please help me to resolve this.
Deprecated: Non-static method mijnpress_plugin_framework::is_admin() should not be called statically in /home/theworld/public_html/tradingnewssite.com/wp-content/plugins/auto-prune-posts/auto-prune-posts.php on line 353
]]>Hello and thank you for your plugin. I get a lot of php warnings:
Non-static method mijnpress_plugin_framework::is_admin() should not be called statically
WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead
plugin_auto_prune_posts::addPluginSubMenu_() should not be called statically
Deprecated: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated.
I can’t get the plugin to work at all on deleting my custom post type posts ??
]]>Hi,
I have added minute into the array in the php, but when I set the requirement to delete posts after 5 minute(s), the posts are not deleted. Only when I purposely change the date to old dates, then it will work. Please help.
]]>I’ve used this plugin for quite a while and it has been great. I would like to offer a suggested enhancement. I am displaying 6 events for my church. The events are added randomly so some may happen 2 weeks from now and some 1 or 2 months from now. Is there anyway to set an expiration date for a post per that specific post and not per category? This would drastically reduce the manual labor of updating posts.
Thanks for any suggestions.
Hi – thanks for useful plugin
I’m too lazy to test this – so… if we set Parent Category for deletion will Subcategory posts also get deleted?
regards,
]]>Can you make minutes as option? Thanks!
]]>Is there any way to have the Auto-Prune plugin, set to delete all posts once a day, but not on a certain day of the week, like Sunday?
Ya gotta love management requests ??
Does this work with Feedwordpress?
Because i can’t get it working.
PHP 7
Warning: Declaration of plugin_auto_prune_posts::addPluginSubMenu() should be compatible with mijnpress_plugin_framework::addPluginSubMenu($title, $function, $file, $capability = 10, $where = ‘plugins.ph…’) in /wordpress/wp-content/plugins/auto-prune-posts/auto-prune-posts.php on line 20
Warning: Declaration of plugin_auto_prune_posts::addPluginContent($links, $file) should be compatible with mijnpress_plugin_framework::addPluginContent($filename, $links, $file, $config_url = NULL) in /wordpress/wp-content/plugins/auto-prune-posts/auto-prune-posts.php on line 20
Is the plugin author still maintaining this plugin?
]]>hi,
i want to password protection some pages. there will be only one login. they can’t login second time. is it possible?
thanks
This plugin hasn’t been updated in a year.
i was planning to use this plugin.
is somebody taking care of maintaing this plugin?
i want to use this only after getting a confirmation.
although i am trying it on a demo site
When i try to delete specific categories, it deletes only some categories. The other stay undeleted.
]]>Need the ability to auto-delete the images that are uploaded to media (for in post or featured image) automatically as well, to reduce “inodes” on my server.
]]>If the plugin is enabled, the following Waring will appear on the top of each page
Warning: Declaration of plugin_auto_prune_posts::addPluginSubMenu() should be compatible with mijnpress_plugin_framework::addPluginSubMenu($title, $function, $file, $capability = 10, $where = 'plugins.ph...') in /www/htdocs/w01253dc/wp16/wp-content/plugins/auto-prune-posts/auto-prune-posts.php on line 20
Warning: Declaration of plugin_auto_prune_posts::addPluginContent($links, $file) should be compatible with mijnpress_plugin_framework::addPluginContent($filename, $links, $file, $config_url = NULL) in /www/htdocs/w01253dc/wp16/wp-content/plugins/auto-prune-posts/auto-prune-posts.php on line 20
Can someone help me?
]]>Hi,
this plugin seems really interesting.
I need to use it to remove automatically the oldest activity posts (also with media added) on BuddyPress.
Will you introduce the possibility to remove the Buddy Press posts?
Kind regards
G. Aloe
]]>Hi, appears to be a conflict with bbpress (bbpress menu unavailable)…could this be fixed at all? thanks
]]>I click delete and Gateway time out
And then all post is missing.
I go to see in the database the table wp_posts.
The database show this message.
Table ‘./egtnau_wrdp/wp_posts’ is marked as crashed and should be repaired
Can anyone help me?
Thank you.
]]>When this plugin is active, wpMandrill generates the error:
Mandrill: wp_mail has been declared by another process or plugin, so you won’t be able to use Mandrill until the problem is solved.
Any way you can resolve this conflict?
]]>I have ton of categories to add for use with the Auto Prune Plugin but cannot use the all setting since not all of my categories can be pruned by a time setting. Is there a quick way to add a few hundred categories to work with the plugin rather than having to do each manually from the plugin admin screen?
]]>Is there a way to delete based on tag rather than category?
]]>For example, if you create a post on October 27th but then you schedule the post for November 27th. If the plugin is set to delete posts that are 1 month old, will it delete the post before it gets published? Or will it calculate 1 month from the publish date?
]]>This plugin is exactly what I need, however when testing I set the posts to expire in 1 hour and instead they are expiring in 1 minute! Eventually I need to set it to expire posts in 30 days but this bug needs to be figured out before I feel it safe to use. I have not tested with longer intervals yet.
]]>Is it possible to delete only those posts which don’t have any comments.
Because deletion of a commented post might not be good.
]]>