[wp-hackers] Detect Network Admin in admin_init?

Frank Bueltge frank at bueltge.de
Sat Nov 23 19:45:03 UTC 2013


small hint.
Use the plugin Debug Objects (http://wordpress.org/plugins/debug-objects/)
to understand and see the right conditionals, see the example screen
http://awesomescreenshot.com/0b9200gt62

Best wishes

On 23 November 2013 20:05, Jeff Rose <jeff at jeffrose.ca> wrote:

> 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.
> >
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list