Opened 7 years ago
Closed 7 years ago
#39788 closed enhancement (fixed)
Add documentation to the `retrieve_password_message` filter that returning empty messages stops email
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
When a user resets his password, WordPress sents the password reset email.
Both retrieve_password_message
and retrieve_password_title
filters are exposed to provide plugins an ability to customize the title or message of the password reset emails.
If the retrieve_password_message
filter returns an empty string for message, then the email itself is not sent. The code at https://github.com/WordPress/WordPress/blob/master/wp-login.php#L372 checks for this condition.
This is not documented anywhere. We should ideally document it by adding it to the phpdoc block of the filter so that it is reflected in the developer docs.
I am attaching a patch that adds this documentation to the phpdoc block.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
exposed
was a wrong word choice in my above message, since people might associate it with security or vulnerabilities. What I meant was the following.