How to get a link to a specific WordPress admin page

To get a reference to a specific admin page (such as Dashboard), we can use the admin_url(), network_admin_url() or get_admin_url() functions, like so:

You will need to pass the reference to the page you’d like to display. To find out how, simply click on the menu page in question, then look at the URL. Anything after wp-admin/ is the parameter.

Those functions are described in detail in the WordPress Codex:

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

Add your voice!