← Back to Blog

Turning Off WordPress Password Change Alert

When WordPress users change their password or get a new password, an e-mail is sent to their administrator e-mail notifying them of this. Although this does not cause a problem on sites with not many users, it may create a spam effect for administrators who have a site with more than 200-300 users. Of course, […]

23 November 2014 2 dk okuma WordPress Blog

When WordPress users change their password or get a new password, an e-mail is sent to their administrator e-mail notifying them of this. Although this does not cause a problem on sites with not many users, it may create a spam effect for administrators who have a site with more than 200-300 users. Of course, it is up to us to prevent this.

Turning off WordPress Password Change Alert

We need to intervene in the basic files of WordPress, which we call core files. I do not recommend doing this manually. In the long run, this may cause the changes you make to be lost after each update or even cause your site to stop working. Instead, you can make changes to core files without being affected by updates, thanks to the Change Plugin that you will create once only. Here I explained how to add the change plugin to your site. I continue assuming that the plugin exists on your site.

Turning off WordPress Password Change Alert Step 1

The codex we need for WordPress password change is wp_password_change_notification , it is located in this codex /wp-includes/pluggable.php path. Of course, we are not making any changes here! I just wanted to write so you would know. Change Plugin With the following code we will add, we will close the e-mails regarding password changes sent by the system.

if ( !function_exists( 'wp_password_change_notification' ) ) {

function wp_password_change_notification() {}

}

Turning off WordPress Password Change Alert Step 2

Advanced users may wonder why we don’t use functions.php? The question may arise. The reason for this is that WordPress loads the pluggable.php file we need for the change before functions.php. Therefore, thanks to the Change Plugin, we make our changes to pluggable.php.

Keep following my Blog for this and similar tips.

Yes, after this process, the password changes made by the users who are members of your site will no longer bother you 🙂 If there is a point you would like to get help from, I say that you can reach me from here and I say goodbye 🙂

 

Let's Talk About Your Next Project

Drop a brief summary and I'll get back to you shortly.