send_network_admin_email_change_email хук-фильтрWP 4.9.0

Filters whether to send the network admin email change notification email.

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

add_filter( 'send_network_admin_email_change_email', 'wp_kama_send_network_admin_email_change_filter', 10, 4 );

/**
 * Function for `send_network_admin_email_change_email` filter-hook.
 * 
 * @param bool   $send       Whether to send the email notification.
 * @param string $old_email  The old network admin email address.
 * @param string $new_email  The new network admin email address.
 * @param int    $network_id ID of the network.
 *
 * @return bool
 */
function wp_kama_send_network_admin_email_change_filter( $send, $old_email, $new_email, $network_id ){

	// filter...
	return $send;
}
$send(true|false)
Whether to send the email notification.
$old_email(строка)
The old network admin email address.
$new_email(строка)
The new network admin email address.
$network_id(int)
ID of the network.

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

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

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

wp_network_admin_email_change_notification()
send_network_admin_email_change_email
wp-includes/ms-functions.php 2821
$send = apply_filters( 'send_network_admin_email_change_email', $send, $old_email, $new_email, $network_id );

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

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