1

I've looked high and low and I can't find anything that will allow the logged in comment author to delete their own comment from the front end. All I want is a delete link under their comment that will delete the comment and all it's meta.

  • Have you looked into wp_delete_comment()? – Christine Cooper May 16 '17 at 14:57
  • 1
    This is the plugin you need wordpress.org/plugins/simple-comment-editing – Tim Hallman May 16 '17 at 15:06
  • Otherwise to do it manually you'll need to add the remove link to your comments template and then setup an action hook in your functions.php or similar to handle deleting the comment. – Tim Hallman May 16 '17 at 15:07
  • Thanks Tim, any help to show me how to do this would be greatly appreciated. – Pete May 16 '17 at 15:18
  • What file would I need to edit in the above plugin to make the ability to delete the comment without any expiration time? – Pete May 17 '17 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.