send_password_change_email хук-фильтрWP 4.3.0

Filters whether to send the password change email.

Использование

add_filter( 'send_password_change_email', 'wp_kama_send_password_change_email_filter', 10, 3 );

/**
 * Function for `send_password_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_password_change_email_filter( $send, $user, $userdata ){

	// filter...
	return $send;
}
$send(true|false)
Whether to send the email.
$user(массив)
The original user array.
$userdata(массив)
The updated user array.

Список изменений

С версии 4.3.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.