[wp-trac] [WordPress Trac] #34252: Add `$user_login` and `$user_data` parameters to `retrieve_password_title` filter
WordPress Trac
noreply at wordpress.org
Sun Oct 11 06:34:55 UTC 2015
#34252: Add `$user_login` and `$user_data` parameters to `retrieve_password_title`
filter
------------------------------------+-----------------------------
Reporter: sudar | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: trunk
Severity: normal | Keywords:
Focuses: |
------------------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34252>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list