Editing and trashingPost
-
hello I have a following requirement and if anyone would help on how to implement it.
In Order to edit a post we use:
https://www.domainname.com/wp-admin/post.php?post=74783&action=edit
Now if i want to trash the same post we have to use:
https://www.domainname.com/wp-admin/post.php?post=74783&action=trash&_wpnonce=abcdedfg
How do i add nonce in this trash link so that if we want the post to be trashed by just clicking this link.My requirement is we get a lot of response for our posts which is forwarded to Email with edit link of the post, now we want to have an additional link which will have trash link also, so that if the response is trash we can just click on this link and trash the comment/post.
- The topic ‘Editing and trashingPost’ is closed to new replies.