Linux 软件免费装
Banner图

Axle Category & Tag Trash

开发者 aryanjasala
更新时间 2026年11月9日 17:28
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

restore tags categories trash undo

下载

3.0.0

详情介绍:

Posts and pages go to the trash when you delete them. Categories and tags don't: one click on "Delete" and the term is gone. WordPress also moves its posts to "Uncategorized", moves its child categories up a level and removes it from your menus. Getting it back means restoring a database backup. Axle Category & Tag Trash keeps every deleted term for 30 days (or 7, 90 or 365, your choice). Undo appears the moment you delete a term, on the Categories, Tags or any other term screen, for single and bulk deletes. Restore later from Tools > Axle Category & Tag Trash puts back: Keeping the same ID matters: navigation blocks, widgets and shortcodes that point to the term by ID work again without editing them. Works with categories, tags, WooCommerce product categories and attributes, and any custom taxonomy that has an admin screen. Free and open source under the GPL. No pro version, no upsells, no ads in wp-admin, no tracking. And it stays that way. Where to find it WP-CLI Try it before you install. try.axlewp.com/axle-category-tag-trash opens a private WordPress in your browser with this plugin and some demo content. Part of Axle by AryanX, a family of free plugins for running WordPress sites safely.

屏幕截图:

  • Tools > Axle Category & Tag Trash.
  • What a restore brings back.

常见问题:

What happens if a new term uses the old slug?

The restored term gets a unique slug instead, and Axle Category & Tag Trash tells you which one.

What if a post was deleted while the term was in the trash?

It is skipped. Everything else is restored.

What if I changed a post's categories in the meantime?

Only posts that still have exactly the default category plus the restored term lose the default category. Posts you changed by hand are left alone, and so are child terms you moved somewhere else.

How long are terms kept?

30 days by default, then a daily task deletes them for good. Choose 7, 30, 90 or 365 days on the Axle Category & Tag Trash screen, or use the axle_category_tag_trash_retention_days filter.

Can I leave a taxonomy out?

Use the axle_category_tag_trash_supports_taxonomy filter. Menus are never kept, because deleting a menu removes its items first.

Does it work for a tag on thousands of posts?

Yes. The posts are saved in small chunks, so the trash stays light. A restore brings back the first 5,000 posts right away and the rest in the background, and wp axle-category-tag-trash restore <id> does it all in one go. Search plugins like ElasticPress are told about every post that gets its term back.

更新日志:

3.0.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.0