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

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

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

add_filter( 'send_site_admin_email_change_email', 'wp_kama_send_site_admin_email_change_filter', 10, 3 );

/**
 * Function for `send_site_admin_email_change_email` filter-hook.
 * 
 * @param bool   $send      Whether to send the email notification.
 * @param string $old_email The old site admin email address.
 * @param string $new_email The new site admin email address.
 *
 * @return bool
 */
function wp_kama_send_site_admin_email_change_filter( $send, $old_email, $new_email ){

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

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

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

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

wp_site_admin_email_change_notification()
send_site_admin_email_change_email
wp-includes/functions.php 7989
$send = apply_filters( 'send_site_admin_email_change_email', $send, $old_email, $new_email );

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

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