apply_filters( 'send_password_change_email', bool $send , array $user , array $userdata )
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
File: wp-includes/user.php
.
View all references
$send_password_change_email = apply_filters( 'send_password_change_email', true, $user, $userdata );
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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():