Showing posts with label generator. Show all posts
Showing posts with label generator. Show all posts

Thursday, April 30, 2009

Remove WordPress generator

To remove WordPress generator, append this code to function.php:

Method 1:


This method will not work on WordPress 2.8.
function remove_generator()
{
    return '';
}
add_filter('the_generator','remove_generator');

Mehod 2:


This method will work on WordPress 2.8.
<?php remove_action('wp_head', 'wp_generator'); ?>