Opened 11 years ago
Closed 11 years ago
#34252 closed enhancement (fixed)
Add `$user_login` and `$user_data` parameters to `retrieve_password_title` filter
| Reported by: | sudar | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Login and Registration | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
The retrieve_password_title filter inside retrieve_password function in wp-login.php file allows you to change the email subject of the password reset emails.
Right now it only has tittle as parameter, where as the similar retrieve_password_message filter which is used to modify the email message has both user_login and user_data as parameters.
The patch that I have attached adds these extra parameters to the retrieve_password_title filter.
Usecase where these new parameter would be used: If a plugin/theme wants to change the subject of the password reset email and include user specific information in the title.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the patch! Adding these parameters to the filter seems reasonable to me.