[wp-hackers] Current Dashboard URL/URI?

Mike Walsh mpwalsh8 at gmail.com
Mon Apr 23 21:05:54 UTC 2012

What is the recommended method for reconstructing the current URL on the
Dashboard?  I need this in my plugin to construct a link.  I am currently
using the this:

$url = get_admin_url() . $pagenow . '?' . $_SERVER['QUERY_STRING'] ;

Is there a better solution?  I couldn't find a WordPress function to return
the query string or the full URL.



Mike Walsh - mpwalsh8 at gmail.com

More information about the wp-hackers mailing list