Get the current screen ID from the admin panel

Every page in the admin panel has an screen id ( http://codex.wordpress.org/Plugin_API/Admin_Screen_Reference ), like the following :
Example : `edit-post` this the id of the post edit page

to get the screen id of the page `get_current_screen()`, this function return an array of the values with the url (http://codex.wordpress.org/Function_Reference/get_current_screen) .

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: