Skip to content

Instantly share code, notes, and snippets.

@carlosleopoldo
Created April 12, 2016 23:27
Show Gist options
  • Save carlosleopoldo/b364ec7320ad822cb999ffd94af0c39c to your computer and use it in GitHub Desktop.
Save carlosleopoldo/b364ec7320ad822cb999ffd94af0c39c to your computer and use it in GitHub Desktop.
Delete all orphans comments meta in WordPress
DELETE FROM wp_commentmeta
WHERE comment_id NOT IN (
SELECT comment_id FROM wp_comments
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment