3 Answers. The admin_url() function retrieves the URL to the admin area for your current site. ... You can use this function if you aren't running WordPress multisite. And use the get_admin_url() function to get a specific site URL in the multisite admin.