Login: Pass the username and `WP_User` object to the `retrieve_password_title` filter.
Adding these parameters creates parity with the `retrieve_password_message` filter, used for modifying the message body of the same password reset email. Props sudar. Fixes #34252. git-svn-id: https://develop.svn.wordpress.org/trunk@35093 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
34a716709c
commit
3f756da63a
|
@ -341,10 +341,13 @@ function retrieve_password() {
|
|||
* Filter the subject of the password reset email.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 4.4.0 Added the `$user_login` and `$user_data` parameters.
|
||||
*
|
||||
* @param string $title Default email title.
|
||||
* @param string $title Default email title.
|
||||
* @param string $user_login The username for the user.
|
||||
* @param WP_User $user_data WP_User object.
|
||||
*/
|
||||
$title = apply_filters( 'retrieve_password_title', $title );
|
||||
$title = apply_filters( 'retrieve_password_title', $title, $user_login, $user_data );
|
||||
|
||||
/**
|
||||
* Filter the message body of the password reset mail.
|
||||
|
|
Loading…
Reference in New Issue