How to remove generator meta tag wordpress
Starting from wordpress 2.5 and above, you cannot remove generated meta tag wordpress version through your template. On prior version, it is simple by comment the line for showing wordpress version on your template.
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
WordPress 2.5 and above, the version is moved into the core of the wordpress. So it will automatically generate metatag generate, such as
<meta name="generator" content="WordPress 3.0" />
If you want to remove this generated line, there are some ways :
- Login to administration wordpress page, and then go to Appearance > Themes, And then Editor. Open functions.php, Add this line before the closing
?>
tag
remove_action('wp_head', 'wp_generator');
- Or use this plugin. Install on plugins area.