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 |
---|---|
2099 |
|
2100 | if ( $current_screen->is_network ) { |
2101 | $current_screen->base .= '-network'; |
2102 | $current_screen->id .= '-network'; |
2103 | } elseif ( $current_screen->is_user ) { |
2104 | $current_screen->base .= '-user'; |
2105 | $current_screen->id .= '-user'; |
2106 | } |
2107 |
|
2108 | $current_screen = apply_filters('current_screen', $current_screen); |
2109 | } |
2110 |
|
2111 | /** |
2112 | * Echos a submit button, with provided text and appropriate class |
2113 | * |
2114 | * @since 3.1.0 |
2115 | * |
2116 | * @param string $text The text of the button (defaults to 'Save Changes') |
2117 | * @param string $type The type of button. One of: primary, secondary, delete |