WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| 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; |