Okay I am using WordPress 2.7 along with Deepstack theme and I tried adding the following codes to my theme's functions.php:
remove_action('wp_head', 'wp_generator');
and I also tried:
<?php remove_action('wp_head', 'wp_generator');
// Remove Windows Live Writer link in header
// Do Not do this if you use it
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'rsd_link');
// Remove WP version info
function hide_wp_vers()
{
return '';
} // end hide_wp_vers function
add_filter('the_generator','hide_wp_vers');
?>
But both didn't do anything, I still get the following line when I look at the source of my page:
<meta name="generator" content="WordPress 2.7" />
Can someone please help me out? It should be hidden with the previous mentioned code parts, right? :S