/custom-taxonomy-cleanup

A WordPress plugin to detect and delete terms from custom taxonomies that are no longer in use

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Custom Taxonomy Cleanup Tests

Version: 1.1.0
Requires at least: 5.9
Tested up to: 6.5

Custom taxonomy terms are left in the database if a taxonomy is no longer registered (in use).

Plugins and themes can (without you knowing) use custom taxomies as a way to store data. These terms stay in the database forever if they're not cleaned up by the plugin/theme itself upon deletion.

This plugin provides an easy way to detect and remove terms from taxonomies that are no longer in use. The settings page for this plugin is at wp-admin > Tools > Custom Taxonomy Cleanup.

Note: The proper WordPress delete function wp_delete_term() is used instead of running a direct MySQL query to delete the terms.

It's recommended you make a database backup before deleting terms.

Check out this sister plugin to delete unused custom post type posts.

Screenshots

No terms found

The settings page if there are no terms from unused taxonomies in the database. De-activate or delete the plugin and use it again later.

No unused taxonomy terms found

Settings Page

The settings page if terms where found (after deleting a batch of 100 terms).

Settings page for this plugin

Done

The settings page if all terms were deleted. De-activate or delete the plugin and use it again later.

Settings page for this plugin