Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

WP DELETE UNUSED TAGS

DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE count = 0 );

DELETE FROM wp_term_taxonomy WHERE term_id not IN (SELECT term_id FROM wp_terms);

DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy);
Source by wpdatatables.com #
 
PREVIOUS NEXT
Tagged: #WP #DELETE #UNUSED #TAGS
ADD COMMENT
Topic
Name
7+2 =