First thing you need to do is create a site-specific WordPress plugin. A site specific WordPress plugin allows you to add any custom code to change or extend the functionality of WordPress on your site. We have detailed instructions on why and how to create a site-specific WordPress plugin.
Once you have created your site specific WordPress plugin, then you need to add these two lines to your plugin.
Tables can't be imported directly. Please insert an image of your table which can be found here.1 2 3
Save your changes and then activate your site-specific plugin.
That’s all. WordPress will stop sending you email notifications whenever a user changes their password.
Let us explain the code to you. WordPress has a built-in function
wp_password_change_notification located in
/wp-includes/pluggable.php file. That function is responsible for sending those email notifications when a user resets their password.
These two lines of code override the built-in function and instead of sending an email, it instructs WordPress to do nothing.
You might be wondering why not paste this code in your theme’s functions.php file?
Because it won’t work. WordPress loads pluggable.php file before your theme’s functions.php file, so you cannot override the functions defined in pluggable.php in your theme’s functions.php file. That’s why you need to paste this code in a site-specific plugin.