Filters whether to send the password change email.
Description
See also
- wp_insert_user(): For
$user
and$userdata
fields.
Parameters
$send
bool- Whether to send the email.
$user
array- The original user array.
$userdata
array- The updated user array.
Source
$send_password_change_email = apply_filters( 'send_password_change_email', true, $user, $userdata );
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |
To disable Password Change notifications:
Or even shorter:
Example migrated from Codex:
To disable the notice of changed password sent by the wp_update_user() function, simply use the filter hook to __return_false():