send_password_change_email filter-hook . WP 4.3.0
Filters whether to send the password change email.
Usage
add_filter( 'send_password_change_email', 'filter_function_name_9291', 10, 3 ); function filter_function_name_9291( $send, $user, $userdata ){ // filter... return $send; }
- $send(true/false)
- Whether to send the email.
- $user(array)
- The original user array.
- $userdata(array)
- The updated user array.
Changelog
Since 4.3.0 | Introduced. |
Where the hook is called
send_password_change_email
wp-includes/user.php 2184
$send_password_change_email = apply_filters( 'send_password_change_email', true, $user, $userdata );