[WordPress] 外掛分享: TrucePurge

首頁外掛目錄 › TrucePurge
WordPress 外掛 TrucePurge 的封面圖片
全新外掛
安裝啟用
尚無評分
15 天前
最後更新
問題解決
WordPress 5.6+ PHP 7.2+ v1.2.0 上架:2026-07-01

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「TrucePurge」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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 ).

延伸相關外掛

文章
Filter
Mastodon