send_site_admin_email_change_email
Filter HookDescription
Filters whether to send the site admin email change notification email.Hook Information
| File Location | 
                                wp-includes/functions.php
                                
                                    View on GitHub
                                
                             | 
                        
| Hook Type | Filter | 
| Line Number | 8108 | 
                        
Hook Parameters
| Type | Name | Description | 
|---|---|---|
                                    bool
                                 | 
                                
                                    $send
                                 | 
                                Whether to send the email notification. | 
                                    string
                                 | 
                                
                                    $old_email
                                 | 
                                The old site admin email address. | 
                                    string
                                 | 
                                
                                    $new_email
                                 | 
                                The new site admin email address. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into send_site_admin_email_change_email
add_filter('send_site_admin_email_change_email', 'my_custom_filter', 10, 3);
function my_custom_filter($send, $old_email, $new_email) {
    // Your custom filtering logic here
    return $send;
}
                        
                    Source Code Context
                        wp-includes/functions.php:8108
                        - How this hook is used in WordPress core
                    
                    <?php
8103  	 *
8104  	 * @param bool   $send      Whether to send the email notification.
8105  	 * @param string $old_email The old site admin email address.
8106  	 * @param string $new_email The new site admin email address.
8107  	 */
8108  	$send = apply_filters( 'send_site_admin_email_change_email', $send, $old_email, $new_email );
8109  
8110  	if ( ! $send ) {
8111  		return;
8112  	}
8113  
                    PHP Documentation
<?php
/**
	 * Filters whether to send the site admin email change notification email.
	 *
	 * @since 4.9.0
	 *
	 * @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.
	 */
                
            
                        Quick Info
                    
                    - Hook Type: Filter
 - Parameters: 3
 - File: wp-includes/functions.php
 
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.