I am coding an website where users can create posts, and I want a “simple” button in the query foreach /loop where they can click to DELETE the post.
I did a lot of research, just I can’t get code to work.
The get_delete_post_link did not work for me.
Anyone know what simple code would work?
It should be easy as:
<a href="Delete this post + ID">Delete this post</a>
What code does it exactly need to be?
Thanks in advance
]]>You may want to clone that function into my_get_delete_post_link and modify it to allow users do delete their own posts.
]]>