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 | 
|---|---|
| 175 |           } | 
| 176 |      } else { | 
| 177 |           // Adding a new user to this site. | 
| 178 |           $new_user_email = wp_unslash( $_REQUEST['email'] ); | 
| 179 |           $user_details   = wpmu_validate_user_signup( $_REQUEST['user_login'], $new_user_email ); | 
| 180 |           if ( is_wp_error( $user_details['errors'] ) && $user_details['errors']->has_errors() ) { | 
| 181 |                $add_user_errors = $user_details['errors']; | 
| 182 |           } else { | 
| 183 |                /** This filter is documented in wp-includes/user.php */ | 
| 184 |                $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) ); | 
| 185 |                if ( isset( $_POST['noconfirmation'] ) && current_user_can( 'manage_network_users' ) ) { | 
| 186 |                     add_filter( 'wpmu_signup_user_notification', '__return_false' );  // Disable confirmation email. | 
| 187 |                     add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email. | 
| 188 |                } | 
| 189 |                wpmu_signup_user( | 
| 190 |                     $new_user_login, | 
| 191 |                     $new_user_email, | 
| 192 |                     array( | 
| 193 |                          'add_to_blog' => get_current_blog_id(), |