Split wp_new_user_notification() into two functions
|Reported by:||sirzooro||Owned by:||westi|
|Component:||Login and Registration||Keywords:||has-patch|
wp_new_user_notification() sends emails to newly registered user and to admin. One of my plugins (WyPiekacz) redefines it in order to to disable emails sent to admin. Now I want to extend my other plugin (User Locker) so newly registered users will have to activate theirs accounts by clicking on link sent in email. In order to do this, I have to redefine the same function. I how to do this so both plugins could work at the same time - this is not a problem for me.
However it will be better to allow to redefine only part of wp_new_user_notification() function - either one which sends email to new user, or to admin. Therefore I ask to split this function into two new ones. Attached patch does this.
Change History (18)
- Keywords needs-patch added; has-patch removed
- Milestone changed from 3.0 to Future Release