Can I remove password notification emails like this?
-
Hello!
I want to remove the email sent to the admin that a user has changed their password. It is only the admin notification I want to remove.
I have seen this method that you can put in a plugin:
if ( ! function_exists( 'wp_password_change_notification' ) ) { function wp_password_change_notification( $user ) { return; } }
This will not work in functions.php, so I was wondering if this is valid or if it will cause problems:
remove_action( 'after_password_reset', 'wp_password_change_notification' );
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Can I remove password notification emails like this?’ is closed to new replies.