Filters whether to send the password change email.
Description
See also
- wp_insert_user(): For
$userand$userdatafields.
Parameters
$sendbool- Whether to send the email.
$userarray- The original user array.
$userdataarray- 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():