[wp-trac] [WordPress Trac] #11210: Split wp_new_user_notification() into two functions
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 20 22:05:31 UTC 2009
#11210: Split wp_new_user_notification() into two functions
-------------------------+--------------------------------------------------
Reporter: sirzooro | Owner: westi
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: Plugins | Version: 2.9
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
`wp_new_user_notification()` sends emails to newly registered user and to
admin. One of my plugins ([http://wordpress.org/extend/plugins/wypiekacz/
WyPiekacz]) redefines it in order to to disable emails sent to admin. Now
I want to extend my other plugin ([http://wordpress.org/extend/plugins
/user-locker/ 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11210>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list