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 |
|---|---|
| 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 |