[wp-hackers] set_current_screen() functionality

Frank Bueltge frank at bueltge.de
Sun Mar 9 19:57:42 UTC 2014


As hint to understand the data inside the array can you use the plugin
https://github.com/bueltge/Debug-Objects
This plugin list all data of current screen in a tab.

Liebe Grüße
Frank



On Sun, Mar 9, 2014 at 10:12 AM, Otto <otto at ottodestruct.com> wrote:

> Basically, the set_current_screen function gets an instance of the
> WP_Screen object and calls it to set the $current_screen global. It should
> not be something you have to call yourself, it's called automatically for
> all admin pages.
>
> WP_Screen is explained a bit here:
> https://codex.wordpress.org/Class_Reference/WP_Screen
>
>  -Otto
>
>
> On Sun, Mar 9, 2014 at 1:52 AM, Utkarsh Dixit <utkarsh.dixit11 at gmail.com
> >wrote:
>
> > Hi,
> > Can someone explain the functionality of set_current_screen() function?
> >
> >
> >
> http://codex.wordpress.org/Function_Reference/set_current_screen#Description
> >
> > Not explained properly here.
> >
> > Thanks.
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> 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