wphooks.info - network_admin_email_change_email

network_admin_email_change_email

*** New in v4.9 ***

The hook occurs in the following file:

wp-includes/ms-functions.php:
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
	 *                - ###OLD_EMAIL### The old network admin email address.
	 *                - ###NEW_EMAIL### The new network admin email address.
	 *                - ###SITENAME###  The name of the network.
	 *                - ###SITEURL###   The URL to the site.
	 *            @type string $headers Headers.
	 *        }
	 * @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.
	 */
	$email_change_email = apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id );

	$email_change_email['message'] = str_replace( '###OLD_EMAIL###', $old_email,    $email_change_email['message'] );
	$email_change_email['message'] = str_replace( '###NEW_EMAIL###', $new_email,    $email_change_email['message'] );
	$email_change_email['message'] = str_replace( '###SITENAME###',  $network_name, $email_change_email['message'] );
	$email_change_email['message'] = str_replace( '###SITEURL###',   home_url(),    $email_change_email['message'] );

	wp_mail( $email_change_email['to'], sprintf(
		$email_change_email['subject'],
		$network_name