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 |
|---|---|
| 112 | } else { |
| 113 | $update = false; |
| 114 | // Hash the password |
| 115 | $user_pass = wp_hash_password($user_pass); |
| 116 | } |
| 117 | |
| 118 | $user_login = sanitize_user($user_login, true); |
| 119 | $user_login = apply_filters('pre_user_login', $user_login); |
| 120 | |
| 121 | if ( empty($user_nicename) ) |
| 122 | $user_nicename = sanitize_title( $user_login ); |
| 123 | $user_nicename = apply_filters('pre_user_nicename', $user_nicename); |
| 124 | |
| 125 | if ( empty($user_url) ) |
| 126 | $user_url = ''; |
| 127 | $user_url = apply_filters('pre_user_url', $user_url); |
| 128 | |
| 129 | if ( empty($user_email) ) |
| 130 | $user_email = ''; |
| 131 | $user_email = apply_filters('pre_user_email', $user_email); |
| 132 | |
| 133 | if ( empty($display_name) ) |
| 134 | $display_name = $user_login; |
| 135 | $display_name = apply_filters('pre_user_display_name', $display_name); |
| 136 | |
| 137 | if ( empty($nickname) ) |
| 138 | $nickname = $user_login; |
| 139 | $nickname = apply_filters('pre_user_nickname', $nickname); |
| 140 | |
| 141 | if ( empty($first_name) ) |
| 142 | $first_name = ''; |