Title: Auto Prune Posts
Author: ramon fincken
Published: <strong>2010 年 10 月 31 日</strong>
Last modified: 2025 年 11 月 11 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/auto-prune-posts.svg)

# Auto Prune Posts

 作者：[ramon fincken](https://profiles.wordpress.org/ramon-fincken/)

[下载](https://downloads.wordpress.org/plugin/auto-prune-posts.3.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/auto-prune-posts/#description)
 * [评价](https://cn.wordpress.org/plugins/auto-prune-posts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/auto-prune-posts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/auto-prune-posts/#developers)

 [支持](https://wordpress.org/support/plugin/auto-prune-posts/)

## 描述

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](https://www.mijnpress.nl) [Mastodon profile](https://mastodon.social/@ramonfincken)
   [More plugins](https://profiles.wordpress.org/ramon-fincken/)
 * Idea by [Nostromo.nl](https://www.nostromo.nl)

Donate [https://donate.ramonfincken.com/](https://donate.ramonfincken.com/)

## 屏幕截图

 * [[
 * Start overview
 * [[
 * All options, you can update or delete each setting
 * [[
 * Advanced options

## 安装

 1. Upload directory `auto_prune_posts` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Visit Plugins menu to configure the plugin.

## 常见问题

### I have a lot of questions and I want support where can I go?

[https://pluginsupport.mijnpress.nl/](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.

## 评价

![](https://secure.gravatar.com/avatar/8f8af7737bed19c14abafa215c3ee01d1d24961649b32dc80df7d70fca5a1513?
s=60&d=retro&r=g)

### 󠀁[Reliable way to delete old posts](https://wordpress.org/support/topic/reliable-way-to-delete-old-posts/)󠁿

 [mquiggeorgia](https://profiles.wordpress.org/mquiggeorgia/) 2024 年 8 月 21 日

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!

![](https://secure.gravatar.com/avatar/88841e7ace4946b2f7ff420167e9dd64d1e7a9c2b7d67b2b7ca11012ee37ce86?
s=60&d=retro&r=g)

### 󠀁[Works fine on WP 6.1.1](https://wordpress.org/support/topic/works-fine-on-wp-6-1-1/)󠁿

 [Bat n Ball](https://profiles.wordpress.org/bat-n-ball/) 2022 年 12 月 6 日 1 回复

I realise this plugin hasn’t been updated for a while but I just wanted to say it’s
great and works well on the most recent version of WordPress. At the time of writing,
that was 6.1.1 Cheers 👍

![](https://secure.gravatar.com/avatar/fc7dbc1dc99c3fc141775d5dbcff800b75de11cd18d0df521ea9570e94cdf0c7?
s=60&d=retro&r=g)

### 󠀁[Throws errors on activation.](https://wordpress.org/support/topic/throws-errors-on-activation/)󠁿

 [kenrichman](https://profiles.wordpress.org/kenrichman/) 2019 年 10 月 7 日

Needs to be updated; too many errors thrown. Hopefully this will be attended to 
as it’s a really useful plugin otherwise.

![](https://secure.gravatar.com/avatar/0d275c243c924c38760d6a018cc1215b497ecf9f88ba3e8a3d4f6f03d5fb544f?
s=60&d=retro&r=g)

### 󠀁[Good Job](https://wordpress.org/support/topic/good-job-887/)󠁿

 [khizaralikhan](https://profiles.wordpress.org/khizaralikhan/) 2018 年 6 月 17 
日

Works Perfectly no errors faced yet

![](https://secure.gravatar.com/avatar/50c101f4d9be877802d44713e653b7ee3306990c73a8daa836608bfa2bf2dcba?
s=60&d=retro&r=g)

### 󠀁[Lifesaver!](https://wordpress.org/support/topic/lifesaver-121/)󠁿

 [angeljs](https://profiles.wordpress.org/angeljs/) 2018 年 5 月 3 日

Thank you for this plugin, it’s saved me a lot of time, trouble and space!

![](https://secure.gravatar.com/avatar/efa3c860086ecadd363372d33cbaaee6f7d8c9e490a6f1314c1e2dfd8b39426e?
s=60&d=retro&r=g)

### 󠀁[the one that works](https://wordpress.org/support/topic/the-one-that-works-2/)󠁿

 [arroyo2](https://profiles.wordpress.org/arroyo2/) 2017 年 8 月 5 日

finally found the one that’s working

 [ 阅读所有10条评价 ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/)

## 贡献者及开发者

「Auto Prune Posts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ ramon fincken ](https://profiles.wordpress.org/ramon-fincken/)

[帮助将「Auto Prune Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/auto-prune-posts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/auto-prune-posts/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/auto-prune-posts/)，或通过[RSS](https://plugins.trac.wordpress.org/log/auto-prune-posts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/auto-prune-posts/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **3.1.1**
 *  最后更新：**7 月前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 2.3 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/auto-prune-posts/)
 * 标签
 * [clean](https://cn.wordpress.org/plugins/tags/clean/)[delete](https://cn.wordpress.org/plugins/tags/delete/)
   [expire](https://cn.wordpress.org/plugins/tags/expire/)[mass](https://cn.wordpress.org/plugins/tags/mass/)
   [prune](https://cn.wordpress.org/plugins/tags/prune/)
 *  [高级视图](https://cn.wordpress.org/plugins/auto-prune-posts/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=4)
 *  [  2 条 3 星评价     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/auto-prune-posts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/auto-prune-posts/reviews/)

## 贡献者

 *   [ ramon fincken ](https://profiles.wordpress.org/ramon-fincken/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/auto-prune-posts/)