Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Stop email change password
- Description: Whatever
- */
- if ( !function_exists( 'wp_password_change_notification' ) ) {
- function wp_password_change_notification() {}
- }
- ?>
- add_filter( 'send_email_change_email', '__return_false' );
- /**
- * Disable Admin Notification of User Password Change
- *
- * @see pluggable.php
- */
- if ( ! function_exists( 'wp_password_change_notification' ) ) {
- function wp_password_change_notification( $user ) {
- return;
- }
- }
- /**
- * Disable User Notification of Password Change Confirmation
- */
- add_filter( 'send_email_change_email', '__return_false' );
- /**
- * Disable sending of the password change email
- */
- add_filter( 'send_password_change_email', '__return_false' );
- <?php
- /*
- Plugin Name: Stop email change password
- Description: Whatever
- */
- if (!function_exists('wp_password_change_notification')) {
- function wp_password_change_notification($user) {
- return;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment