Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evemilano/60e326e8285536c3e248 to your computer and use it in GitHub Desktop.
Save evemilano/60e326e8285536c3e248 to your computer and use it in GitHub Desktop.
Cancellare tutti i commenti di WordPress con phpMyAdmin
# Esegui questo comando se vuoi cancellare tutti i commenti in attesa di moderazione (pending). Per lanciare il comando per prima cosa seleziona il tuo database, poi naviga nella tab SQL, inserisci la query e premi Esegui.
DELETE from wp_comments WHERE comment_approved = '0'
# Esegui questo comando se vuoi cancellare tutti i commenti precedentemente approvati.
DELETE from wp_comments WHERE comment_approved = '1'
# Esegui questo comando se vuoi cancellare tutti i commenti marcati come SPAM.
DELETE from wp_comments WHERE comment_approved = 'spam'
# Esegui questo comando se vuoi cancellare tutti i commenti nel cestino.
DELETE from wp_comments WHERE comment_approved = 'trash'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment