有时候类别用csv加错了,一堆无用数据,直接phpmyadmin删除所有的目录
执行这几行代码:
DELETE FROM wp_term_relationships WHERE term_taxonomy_id IN (SELECT term_taxonomy_id FROM wp_term_taxonomy WHERE taxonomy = 'product_cat');
DELETE FROM wp_term_taxonomy WHERE taxonomy = 'product_cat';
DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy = 'product_cat');
轻松拿捏!