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 |
|---|---|
| 37 | |
| 38 | get_current_screen()->set_help_sidebar( |
| 39 | '<p><strong>' . __('For more information:') . '</strong></p>' . |
| 40 | '<p>' . __('<a href="https://codex.wordpress.org/Network_Admin_Settings_Screen">Documentation on Network Settings</a>') . '</p>' . |
| 41 | '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>' |
| 42 | ); |
| 43 | |
| 44 | if ( $_POST ) { |
| 45 | /** This action is documented in wp-admin/network/edit.php */ |
| 46 | do_action( 'wpmuadminedit' ); |
| 47 | |
| 48 | check_admin_referer( 'siteoptions' ); |
| 49 | |
| 50 | $checked_options = array( 'menu_items' => array(), 'registrationnotification' => 'no', 'upload_space_check_disabled' => 1, 'add_new_users' => 0 ); |
| 51 | foreach ( $checked_options as $option_name => $option_unchecked_value ) { |
| 52 | if ( ! isset( $_POST[$option_name] ) ) |
| 53 | $_POST[$option_name] = $option_unchecked_value; |
| 54 | } |
| 55 | |