Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: screen_meta_screen

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3300      }
3301 }
3302
3303 function screen_meta($screen) {
3304      global $wp_meta_boxes, $_wp_contextual_help;
3305
3306      $screen = str_replace('.php', '', $screen);
3307      $screen = str_replace('-new', '', $screen);
3308      $screen = str_replace('-add', '', $screen);
3309      $screen = apply_filters('screen_meta_screen', $screen);
3310
3311      $column_screens = get_column_headers($screen);
3312      $meta_screens = array('index' => 'dashboard');
3313
3314      if ( isset($meta_screens[$screen]) )
3315           $screen = $meta_screens[$screen];
3316      $show_screen = false;
3317      if ( !empty($wp_meta_boxes[$screen]) || !empty($column_screens) )
3318           $show_screen = true;