What are WordPress orphaned term meta and how to clean them?

The term meta data is the information that is provided for each taxonomy term. This information usually includes additional data that is not stored in the terms table of WordPress. In some cases, some term meta data information become orphaned and do not belong to any taxonomy term. They are then called “orphaned termmeta” and should be cleaned since they are not useful.
To clean these orphaned termmeta, you can either use our plugin Advanced Database Cleaner, or execute the following sql code (which is used by the plugin) directly via your phpMyAdmin:

DELETE FROM termmeta WHERE term_id NOT IN (SELECT term_id FROM terms)

About Younes JFR.

Younes Jaafar known as (Younes JFR.), is the Founder of SigmaPlugin.com. I have spent the past 10 years developing websites and plugins for WordPress. Web development is not only a job but also a passion for me and always will be.