get_delete_post_link() returning wrong url?
-
i don’t know why when i see the site as user with author role get_delete_post_link() shows me a working link nonce to delete
like/wp-admin/post.php?post=2040&action=trash&_wpnonce=28281ea73c
But when he logs in with his account he sees:
/?post_type=translations&p=2040
So the links are different when they should be the same.
I edited the author capabilities an enabled “delete_posts”.
Is there anything else i have to give them to be able to delete drafts? (post is a draft) i thought delete_posts was it?Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_delete_post_link() returning wrong url?’ is closed to new replies.