删除 WordPress标签,在MySQL数据库中使用SQL语句进行批量删除。
打开数据库管理phpmyadmin或其他,进入 WordPress的数据库中,点击 SQL界面,输入以下语句代码:
DELETE a,b,c FROM wp_terms AS a LEFT JOIN wp_term_taxonomy AS c ON a.term_id = c.term_id LEFT JOIN wp_term_relationships AS b ON b.term_taxonomy_id = c.term_taxonomy_id WHERE c.taxonomy = 'post_tag' AND c.count = 0
0 代表未引用标签,如果想删除全部标签,修改对应标签引用数字。