WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11247 closed enhancement (worksforme)

new user email filters

Reported by: ansimation Owned by: westi
Milestone: Priority: normal
Severity: normal Version: 2.9
Component: Plugins Keywords: new user email
Focuses: Cc:

Description

looked to see if there was a way for a plugin to actually edit the initial emails that are sent out when a user registers and there were no actions available so here's my patch. if you know of a way to do this without the patch then please feel free to let me know.

Attachments (1)

new_user_email_filters.diff (858 bytes) - added by ansimation 4 years ago.
diff

Download all attachments as: .zip

Change History (3)

ansimation4 years ago

diff

comment:1 beaulebens4 years ago

While those default messages are not currently filterable, they *are* defined in pluggable.php, in such a way that you can redefine the entire function if you want to do something totally different.

e.g. just defined your own version of wp_new_user_notification(), wp_password_change_notification() etc in a plugin, then activate it and it should override the core functions.

comment:2 scribu4 years ago

  • Milestone Unassigned deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.