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 |
|---|---|
| 3190 | * |
| 3191 | * Return false to disable sending the email. |
| 3192 | * |
| 3193 | * @since 6.0.0 |
| 3194 | * |
| 3195 | * @param bool $send Whether to send the email. |
| 3196 | * @param string $user_login The username for the user. |
| 3197 | * @param WP_User $user_data WP_User object. |
| 3198 | */ |
| 3199 | if ( ! apply_filters( 'send_retrieve_password_email', true, $user_login, $user_data ) ) { |
| 3200 | return true; |
| 3201 | } |
| 3202 | |
| 3203 | // Redefining user_login ensures we return the right case in the email. |
| 3204 | $user_login = $user_data->user_login; |
| 3205 | $user_email = $user_data->user_email; |
| 3206 | $key = get_password_reset_key( $user_data ); |
| 3207 | |
| 3208 | if ( is_wp_error( $key ) ) { |