send_network_admin_email_change_email
Filters whether to send the network admin email change notification email.
Usage
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(string)
- The old network admin email address.
- $new_email(string)
- The new network admin email address.
- $network_id(int)
- ID of the network.
Changelog
Since 4.9.0 | Introduced. |
Where the hook is called
send_network_admin_email_change_email
wp-includes/ms-functions.php 2830
$send = apply_filters( 'send_network_admin_email_change_email', $send, $old_email, $new_email, $network_id );