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 |
|---|---|
| 34 | ) ); |
| 35 | |
| 36 | get_current_screen()->set_help_sidebar( |
| 37 | '<p><strong>' . __('For more information:') . '</strong></p>' . |
| 38 | '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Settings_Screen" target="_blank">Documentation on Network Settings</a>') . '</p>' . |
| 39 | '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' |
| 40 | ); |
| 41 | |
| 42 | if ( $_POST ) { |
| 43 | do_action( 'wpmuadminedit' , '' ); |
| 44 | |
| 45 | check_admin_referer( 'siteoptions' ); |
| 46 | |
| 47 | if ( isset( $_POST['WPLANG'] ) && ( '' === $_POST['WPLANG'] || in_array( $_POST['WPLANG'], get_available_languages() ) ) ) |
| 48 | update_site_option( 'WPLANG', $_POST['WPLANG'] ); |
| 49 | |
| 50 | if ( is_email( $_POST['admin_email'] ) ) |
| 51 | update_site_option( 'admin_email', $_POST['admin_email'] ); |
| 52 | |