Creating a nonce for deleting comment front-end
-
Hi,
My goal is to make a delete link front-end under each posted comment to make it possible for a author to delete their own comments. I have searched and tried multiple methods but I can’t seem to make it work with the nonce even though reading through the documentation. I am hoping for some guidance.I have figured out that the link should look like something like this:
https://www.host.com/wp-admin/comment.php?c=###&action=trashcomment&_wpnonce=##########
I can get the ID of the comment, no problem but I can’t seem to generate the correct nonce and I’m stuck.
Could someone please help me and show we how it is done?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Creating a nonce for deleting comment front-end’ is closed to new replies.