跳到内容

TrucePurge

v1.2.0

trucetech · 2026年7月2日 上架

Group posts, pages and media by date, then bulk-delete a whole year, month, day, or single items — safely, with a typed DELETE step.

正在使用
10 以下
评分
暂无
累计下载
318
最近更新
2026年7月3日
需要 WordPress 5.6+已测试到 7.0.9PHP 7.2+

贡献者

截图

The Year → Month → Day → Item tree with live counts, quick-select chips and the stats bar.
The Year → Month → Day → Item tree with live counts, quick-select chips and the stats bar.
Expanding a month to pick individual days and items, with status pills and per-item edit links.
Expanding a month to pick individual days and items, with status pills and per-item edit links.
The confirmation step: choose Move to Trash or Delete permanently, with the typed DELETE safeguard and progress bar.
The confirmation step: choose Move to Trash or Delete permanently, with the typed DELETE safeguard and progress bar.

TrucePurge adds one screen under Tools TrucePurge that turns a slow, click-by-click cleanup into a few seconds of work. It lays your content out as a Year Month Day Item tree with live counts, so you can see exactly what you have and remove exactly what you want.

It is built to be lightweight and to stay out of the way of your other plugins.

What you can do

  • Browse Posts, Pages, Images and Videos grouped by year and month, each level showing a live count.
  • Tick an entire year, an entire month, individual days, or single items — selections cascade and stay in sync with tidy tri-state checkboxes.
  • Use one-click quick selects: everything older than 30 days, 6 months, or 1 year (precise to the day), or select everything at once.
  • Filter by content type, by post status (Published, Draft, Pending, Private, Scheduled, Trash), or by a title keyword.
  • Choose how to remove: delete permanently (bypasses the Trash) or the safer move to Trash (recoverable).
  • Optionally also remove the media attached to the posts you are deleting.
  • Export a CSV of your selection first, so you always have a record of what was removed.
  • Watch progress on a bar as items are removed — the whole selection goes at once, with no artificial cap.

Built to be safe

  • Permanent deletion asks you to type the word DELETE, enforced on the server too, not just in the browser.
  • Every action checks a nonce and a capability, and each item is re-checked against your own delete permissions before it is touched.
  • All database reads use prepared statements.

Built to be conflict-free

  • Zero front-end footprint: all code runs in the admin only, and CSS/JS load on its own screen only.
  • No jQuery dependency (vanilla JS), so it cannot clash with another plugin’s jQuery version.
  • Everything is namespaced with a TRUCEPURGE_ / trucepurge_ prefix — no global functions, no shared option keys, no wp_ajax_nopriv hooks.

For developers

  • trucepurge_content_types — add or change the content types shown.
  • trucepurge_capability — change which capability may use the tool (default delete_posts).
  • trucepurge_after_delete — fires after each batch: do_action( 'trucepurge_after_delete', $ids, $user_id, $deleted, $mode ).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums