Mobile app version of vmapp.org
Login or Join
Dunderdale272

: Wordpress - Automatic email to admin on password change Noticed something interesting in WordPress...hopefully its just me not seeing the right option. Whenever a user requests a new password,

@Dunderdale272

Posted in: #Wordpress

Noticed something interesting in WordPress...hopefully its just me not seeing the right option.

Whenever a user requests a new password, it will notify the site admin that the password was changed. What I'd like to do is disable this feature, as for this specific site I really don't care if users are changing their password.

Is this a setting somewhere that I'm missing, or does it require a plugin to disable this functionality?

10.06% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

6 Comments

Sorted by latest first Latest Oldest Best

 

@Becky754

I found better solution for solve this problem without plugin.


Backup your wp-includes/pluggable.php
Edit wp-includes/pluggable.php file
Find wp_password_change_notification part
Delete these lines from file:

if ( !function_exists(`wp_password_change_notification`) )

/**
* Notify the blog admin of a user changing password, normally via email.
*
* @since 2.7.0
*
* @param object $user User Object
*/

function wp_password_change_notification(&$user) {

// send a copy of password change notification to the admin
// but check to see if it's the admin whose password we're changing, and skip this
if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) {
$message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "rn";
// The blogname option is escaped with esc_html on the way into the database in sanitize_option
// we want to reverse this for the plain text arena of emails.
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message);
}


} endif;
Save.

10% popularity Vote Up Vote Down


 

@Vandalay111

I have put together a plugin that disables the sending of "password changed notification" email:
wordpress.org/extend/plugins/disable-password-change-email/

10% popularity Vote Up Vote Down


 

@Holmes151

Actually that is in the setting where you put your email to be notify for any activity that the admin should be notify, such as if there is any ping or link back to your site, any new registration to your site or even any "FORGOT PASSWORD" or password change that happen to your site.

I'm afraid that if you want to disable this there is only two option


Remove your email from the database [Hardcore removing] because in Wordpress setting it doesn't allow you to remove because it is required.
Is you have to add this in your functions.php which will disable the whole notification.


.

if( function_exists('wp_password_change_notification') )
function wp_password_change_notification(){}
if( function_exists('wp_password_change_notification') )
function wp_new_user_notification(){}

10% popularity Vote Up Vote Down


 

@Megan663

You have to write a simple pluging that overwrites wp_password_change_notification.

if ( !function_exists( 'wp_password_change_notification' ) ) {
function wp_password_change_notification() {}
}


More detailed instructions can be found here:
wpquicktips.wordpress.com/2011/03/23/disable-password-changedreset-e-mail-notification/

10% popularity Vote Up Vote Down


 

@Kaufman445

I could be wrong, but I don't think that's part of standard WP procedure. Only the user resetting the password usually gets an email about the reset.

I've never received an email for any of my users resetting their passwords.

Are you sure it's not people trying to reset the admin password, and that's why you're getting emails?

10% popularity Vote Up Vote Down


 

@Sherry384

I couldn't see anything in WP 3.0 that did what you wanted.

The Register Plus plugin almost gives you what you want. It allows you to disable registration notifications. Maybe drop the developer a line to see if he can add what you want?

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme