0
X
Add Snippet To Project
New Project
Add To Existing Project
<?php
/**
* Plugin Name: My WordPress Plugin
* Description: This plugin disables the password change notification.
* Version: 1.0
* Author: Your Name
* Author URI: https://yourwebsite.com
* Text Domain: wpturbo
*/
// Disable password change notification
function wpturbo_disable_password_change_notification() {
return false;
}
add_filter('password_change_email', 'wpturbo_disable_password_change_notification');
Explanation:
The code snippet above adds a filter hook password_change_email and attaches the wpturbo_disable_password_change_notification function to it. This function simply returns false, which disables the password change notification.
You can place this code in your 'wp-plugin.php' file or create a new plugin file with this code and activate it in your WordPress admin dashboard.