<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>get_delete_post_link() returning wrong url?

[ad_1]

Replies: 1

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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer