[wp-hackers] set_current_screen() functionality

Otto otto at ottodestruct.com
Sun Mar 9 09:12:21 UTC 2014


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
>


More information about the wp-hackers mailing list