Filter hook 'send_network_admin_email_change_email'

in WP Core File wp-includes/ms-functions.php at line 2887

View Source

send_network_admin_email_change_email

Filter Hook
Description
Filters whether to send the network admin email change notification email.

Hook Information

File Location wp-includes/ms-functions.php View on GitHub
Hook Type Filter
Line Number 2887

Hook Parameters

Type Name Description
bool $send Whether to send the email notification.
string $old_email The old network admin email address.
string $new_email The new network admin email address.
int $network_id ID of the network.

Usage Examples

Basic Usage
<?php
// Hook into send_network_admin_email_change_email
add_filter('send_network_admin_email_change_email', 'my_custom_filter', 10, 4);

function my_custom_filter($send, $old_email, $new_email, $network_id) {
    // Your custom filtering logic here
    return $send;
}

Source Code Context

wp-includes/ms-functions.php:2887 - How this hook is used in WordPress core
<?php
2882  	 * @param bool   $send       Whether to send the email notification.
2883  	 * @param string $old_email  The old network admin email address.
2884  	 * @param string $new_email  The new network admin email address.
2885  	 * @param int    $network_id ID of the network.
2886  	 */
2887  	$send = apply_filters( 'send_network_admin_email_change_email', $send, $old_email, $new_email, $network_id );
2888  
2889  	if ( ! $send ) {
2890  		return;
2891  	}
2892  

PHP Documentation

<?php
/**
	 * Filters whether to send the network admin email change notification email.
	 *
	 * @since 4.9.0
	 *
	 * @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.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 4
  • File: wp-includes/ms-functions.php
Related Hooks

Related hooks will be displayed here in future updates.