How to Force Delete Comments
By default, WordPress moves deleted comments to the trash
When you delete a comment, whether from the frontend or admin dashboard, it is moved to the trash.
However, there's a way through code to force delete a comment anytime it's deleted.
Force Deleting Comments Through Code
You'd place the following in a mu-plugin or code snippet.
Force Deleting Spam Comment
To force delete comments marked as spam, you'd modify the above for the spammed_comment
filter.
Force Deleting Edited Comments
If comment deletion is enabled in Comment Edit Core, you can force delete a comment by adding the following:
Force Deletion Without Code
Comment Edit Pro, a premium plugin that compliments Comment Edit Core, has options for force deletion.
Last updated