Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: send_retrieve_password_email

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3113       *
3114       * Return false to disable sending the email.
3115       *
3116       * @since 6.0.0
3117       *
3118       * @param bool    $send       Whether to send the email.
3119       * @param string  $user_login The username for the user.
3120       * @param WP_User $user_data  WP_User object.
3121       */
3122      if ( ! apply_filters( 'send_retrieve_password_email', true, $user_login, $user_data ) ) {
3123           return true;
3124      }
3125
3126      // Redefining user_login ensures we return the right case in the email.
3127      $user_login = $user_data->user_login;
3128      $user_email = $user_data->user_email;
3129      $key        = get_password_reset_key( $user_data );
3130
3131      if ( is_wp_error( $key ) ) {