Question

I’m fairly new to WP/PHP and I’m trying to remove the server response header in functions.php. I’ve been trying use something like this but it doesn’t work:

add_filter('wp_headers', function($headers) { unset($headers['server']);