Q: Let user delete comment on front end only I have a edit comments page on my sites front end and have placed a delete comment link for users. The link works however it takes the user to the backend to confirm the comment deletion. I cant have any users going to the backend though, so what can I do to avoid this step?
I tried looking around and found someone with a similar problem but besides that I can not find any help on this. https://wordpress.org/support/topic/directly-delete-comments-in-template-no-admin-step-please
The code Im using to generate the links on my comment form on the front end --
<?php 
    echo ' <a href="'.admin_url("comment.php?action=cdc&c=$comment_id").'">[Delete]</a>';
    echo ' <a href="'.admin_url("comment.php?action=cdc&dt=spam&c=$comment_id").'">[Spam]</a>'; ?>

It works fine except the 2nd step of confirming the comment delete from the back end. What can I do?
