[wp-hackers] Current Dashboard URL/URI?
otto at ottodestruct.com
Mon Apr 23 23:55:40 UTC 2012
That's basically correct, although I'd do it this way:
$url = admin_url($pagenow.'?'.$_SERVER['QUERY_STRING']);
On Mon, Apr 23, 2012 at 4:05 PM, Mike Walsh <mpwalsh8 at gmail.com> wrote:
> 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
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers