[wp-hackers] Current Dashboard URL/URI?

Michael D Adams mda at blogwaffe.com
Tue Apr 24 00:25:56 UTC 2012


On Mon, Apr 23, 2012 at 4:55 PM, Otto <otto at ottodestruct.com> wrote:
> global $pagenow;
> $url = admin_url($pagenow.'?'.$_SERVER['QUERY_STRING']);

$url = add_query_arg();

That gives you an URL relative to the domain root.

Mike


More information about the wp-hackers mailing list