Skip to content

Instantly share code, notes, and snippets.

@n1k1c4
Last active December 8, 2017 10:29
Show Gist options
  • Save n1k1c4/d18e8aea485865287b22c1413f31300b to your computer and use it in GitHub Desktop.
Save n1k1c4/d18e8aea485865287b22c1413f31300b to your computer and use it in GitHub Desktop.
DELETE a,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 = 'product_tag';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment