@norbertk
This is a guide about “How To Disable WordPress Update Notifications (Plugin or Code)”
https://kinsta.com/knowledgebase/disable-wordpress-update-notification/
There is no mention of “password changes” notifications in the article
@norbertk
You should try to use:
add_filter( 'send_password_change_email', '__return_false' );
This is the WP filter code:
/**
* Filters whether to send the password change email.
*
* @since 4.3.0
*
* @see wp_insert_user() For <code>$user</code> and <code>$userdata</code> fields.
*
* @param bool $send Whether to send the email.
* @param array $user The original user array.
* @param array $userdata The updated user array.
*/
$send_password_change_email = apply_filters( 'send_password_change_email', true, $user, $userdata );
-
This reply was modified 2 years, 8 months ago by
missveronica.
@norbertk
No the code snippet above will stop emails to the user from WP.
Admin emails you can try to remove the call to the function you used by this code snippet
remove_action( 'after_password_reset', 'wp_password_change_notification' );
Thanks this appears to have done the trick.
remove_action( 'after_password_reset', 'wp_password_change_notification' );