I am successfully using get_current_screen(); to get the post_type to decide whether to manipulate a meta box or not.
I also need to use it in:
add_action('admin_menu', 'infographicMetaBox');
function infographicMetaBox() {
// ...
$screen = get_current_screen();
if('post' != $screen->post_type)
return;
// ...
}
however it doesn’t seem to be available in that hook function (maybe being called to early?).
I don’t know exactly what you are trying to accomplish but you seem to be dealing with meta boxes. If so there are a number of meta box specific hooks.
As well as the
admin_head*
hooksAll of which run after
global $current_screen
is set here: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/admin-header.php#L18Yes, it is too early. Check http://codex.wordpress.org/Function_Reference/get_current_screen for examples of usage.