[wp-hackers] Detect Network Admin in admin_init?

Jeff Rose jeff at jeffrose.ca
Sat Nov 23 19:05:39 UTC 2013


Thanks Shea, that's the function I was looking for but somehow it wasn't
coming up for me. Works perfectly!


On Sat, Nov 23, 2013 at 4:00 AM, <wp-hackers-request at lists.automattic.com>wrote:

>
>
> Message: 2
> Date: Sat, 23 Nov 2013 09:46:43 +1100
> From: Shea Bunge <info at bungeshea.com>
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Detect Network Admin in admin_init?
> Message-ID:
>         <
> CAJLbkRZHJfJdBHYMJr2wX3tq6-aA+W07qYgOqRz36+pUCtEOqw at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Have a look at the is_network_admin() function (
> http://queryposts.com/function/is_network_admin/). If the current screen
> global is not yet set, it checks the WP_NETWORK_ADMIN constant.
>
>


More information about the wp-hackers mailing list