send_email_change_email filter-hookWP 4.3.0

Filters whether to send the email change email.

Usage

add_filter( 'send_email_change_email', 'wp_kama_send_email_change_filter', 10, 3 );

/**
 * Function for `send_email_change_email` filter-hook.
 * 
 * @param bool  $send     Whether to send the email.
 * @param array $user     The original user array.
 * @param array $userdata The updated user array.
 *
 * @return bool
 */
function wp_kama_send_email_change_filter( $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

wp_update_user()
send_email_change_email
wp-includes/user.php 2546
$send_email_change_email = apply_filters( 'send_email_change_email', true, $user, $userdata );

Where the hook is used in WordPress

Usage not found.