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

But note that it will not work if you integrate the code snippet into the functions.php of your theme because WP loads pluggable.php before function.php. So, you’ll need to create a plugin with these 2 lines.

Here’s how you can create a simple plugin for code snippets: Site-Specific WordPress Plugin for Code Snippets

That’s all there is to it! WordPress will no longer send email notifications about password resets. Users who have requested a password reset will still receive all the e-mails required to reset their password.
 
Related Video:

If you liked this post, please consider sharing it with your friends:


Source link

Leave a Reply

Your email address will not be published. Required fields are marked *