Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: current_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
2140
2141      if ( $current_screen->is_network ) {
2142           $current_screen->base .= '-network';
2143           $current_screen->id .= '-network';
2144      } elseif ( $current_screen->is_user ) {
2145           $current_screen->base .= '-user';
2146           $current_screen->id .= '-user';
2147      }
2148
2149      $current_screen = apply_filters('current_screen', $current_screen);
2150 }
2151
2152 /**
2153  * Echos a submit button, with provided text and appropriate class
2154  *
2155  * @since 3.1.0
2156  *
2157  * @param string $text The text of the button (defaults to 'Save Changes')
2158  * @param string $type The type of button. One of: primary, secondary, delete