auto_core_update_send_email

auto_core_update_send_email

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.1

apply_filters('auto_core_update_send_email') is found 1 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 935
    		 *                            'success', 'fail', 'critical'.
    		 * @param object $core_update The update offer that was attempted.
    		 * @param mixed  $result      The result for the core update. Can be WP_Error.
    		 */
    		if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {
    			return;
    		}
    
    		$admin_user = get_user_by( 'email', get_site_option( 'admin_email' ) );
    
    		if ( $admin_user ) {