Opened 10 years ago
Closed 10 years ago
#34252 closed enhancement (fixed)
Add `$user_login` and `$user_data` parameters to `retrieve_password_title` filter
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | 4.4 |
| Component: | Login and Registration | Keywords: | has-patch |
| Focuses: | Cc: |
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.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Thanks for the patch! Adding these parameters to the filter seems reasonable to me.