Discussion:
set_current_screen() functionality
Utkarsh Dixit
2014-03-09 07:52:15 UTC
Permalink
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.
Otto
2014-03-09 09:12:21 UTC
Permalink
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
Post by Utkarsh Dixit
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
http://lists.automattic.com/mailman/listinfo/wp-hackers
Frank Bueltge
2014-03-09 19:57:42 UTC
Permalink
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
Post by Otto
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.
https://codex.wordpress.org/Class_Reference/WP_Screen
-Otto
Post by Utkarsh Dixit
Hi,
Can someone explain the functionality of set_current_screen() function?
http://codex.wordpress.org/Function_Reference/set_current_screen#Description
Post by Utkarsh Dixit
Not explained properly here.
Thanks.
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Continue reading on narkive:
Loading...