Title: Use admin_url function rather than hard-coding &#8216;wp-admin/&#8217; everywhere
Last modified: May 30, 2019

---

# Use admin_url function rather than hard-coding ‘wp-admin/’ everywhere

 *  Resolved [mikey2019](https://wordpress.org/support/users/mikey20189/)
 * (@mikey20189)
 * [7 years ago](https://wordpress.org/support/topic/use-admin_url-function-rather-than-hard-coding-wp-admin-everywhere/)
 * You should use the [`admin_url`](https://codex.wordpress.org/Function_Reference/admin_url)
   function for all your external links.
 * Otherwise the plugin doesn’t work with wordpress installations with non-conventional
   url paths like [https://roots.io/bedrock/docs/folder-structure/](https://roots.io/bedrock/docs/folder-structure/)
   and [https://framework.themosis.com/docs/2.0/structure/](https://framework.themosis.com/docs/2.0/structure/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [7 years ago](https://wordpress.org/support/topic/use-admin_url-function-rather-than-hard-coding-wp-admin-everywhere/#post-11589036)
 * Good point. We’ll add that to the list of development tasks.

Viewing 1 replies (of 1 total)

The topic ‘Use admin_url function rather than hard-coding ‘wp-admin/’ everywhere’
is closed to new replies.

 * ![](https://ps.w.org/revisionary/assets/icon-256x256.png?rev=3394615)
 * [PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes](https://wordpress.org/plugins/revisionary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisionary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisionary/)
 * [Active Topics](https://wordpress.org/support/plugin/revisionary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisionary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisionary/reviews/)

## Tags

 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/use-admin_url-function-rather-than-hard-coding-wp-admin-everywhere/#post-11589036)
 * Status: resolved