Title: get_delete_post_link() returning wrong url?
Last modified: December 5, 2023

---

# get_delete_post_link() returning wrong url?

 *  Resolved [dylandawg](https://wordpress.org/support/users/dylandawg/)
 * (@dylandawg)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/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-block-code
       /wp-admin/post.php?post=2040&action=trash&_wpnonce=28281ea73c
       ```
   
 * But when he logs in with his account he sees:
 *     ```wp-block-code
       /?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)

 *  Thread Starter [dylandawg](https://wordpress.org/support/users/dylandawg/)
 * (@dylandawg)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/get_delete_post_link-returning-wrong-url/#post-17253433)
 * Solved the plugin is fine, user shared wrong link when reporting.

Viewing 1 replies (of 1 total)

The topic ‘get_delete_post_link() returning wrong url?’ is closed to new replies.

 * ![](https://ps.w.org/login-as-user/assets/icon-256x256.png?rev=3547432)
 * [Login as User](https://wordpress.org/plugins/login-as-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-as-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-as-user/)
 * [Active Topics](https://wordpress.org/support/plugin/login-as-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-as-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-as-user/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [dylandawg](https://wordpress.org/support/users/dylandawg/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/get_delete_post_link-returning-wrong-url/#post-17253433)
 * Status: resolved