One of the bigger projects I am working on currently has 30k+ users. Having that many users means that many also will reset their password, and you will receive an e-mail every time.
So how do you disable it?
The function sending this e-mail is called wp_password_change_notification and is declared in pluggable.php. The great thing about the functions in pluggable.php is that if you declare a function with the same name as one of its functions, your function will overwrite it.
So if you want to disable it, simply create a plugin with these lines of code:
if ( !function_exists( 'wp_password_change_notification' ) ) { function wp_password_change_notification() {} }
Update: Earlier I said that you could write these lines in your functions.php but as Stefan pointed out, it does not seem to work
This would be great!!
But does this really work? There is no change for me, I still get those annoying emails when users change/resets password.
(wordpress 3.1)
It does for me. I did it as a plugin though. I’m not sure if that makes a difference.
Yes.
It works as a plugin!
( maybe pluggable.php loads before functions.php but after all the plugins )
Yeah, I’ll edit my post and mention that!
Another option would be to insert the code in your wp-config before “require_once(ABSPATH . ‘wp-settings.php’);”
Great tip Benjamin! Thank you!
I have put together a plugin that puts implements the disabling the sending of password changed notification:
http://wordpress.org/extend/plugins/disable-password-change-email/
It’s based on the helpful info I found in your post 🙂
Nice one Andrej!
Is this working for you guys? I have installed and activated the plugin and we still receive the emails. Thanks in advance!
It looks like it’s not working any more Compatible up to: 3.3.2….
If you hook it into the ‘muplugins_loaded’ action it should work. Testing it out now.
[…] https://wpquicktips.wordpress.com/2011/03/23/disable-password-changedreset-e-mail-notification/ […]