send_site_admin_email_change_email filter-hookWP 4.9.0

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

Usage

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(string)
The old site admin email address.
$new_email(string)
The new site admin email address.

Changelog

Since 4.9.0 Introduced.

Where the hook is called

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 );

Where the hook is used in WordPress

Usage not found.