Finally, Here is a sure shot way to remove WordPress meta Generator Tags

Most WordPress themes add a meta generator tag to the code. This tag is used to get the statistics of how many sites and using which WordPress versions. It looks like this in the browser:

WordPress Meta Tags

The bad thing about leaving the tags there is that, any potential hacker can easily identify which version you are using. From another angle, if someone manages to find a security glitch in any WordPress version, he would be able to search for all blogs using that particular version.

One way that used to work was by deleting the tag from the theme. Open up header.php and remove this line:

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />

I have found that removing this doesn’t fix this often. One sure shot way that always work is using functions.php to add a little code:

<?php remove_action('wp_head', 'wp_generator'); ?>

If you do not have a functions.php in your theme, make one. Make sure this line is above all the code in the file. I am yet to see a case where this fails.

You could use this plugin instead.

Well, hackers are smart people, removing this tag wont make your site super secure, but it would be a little step. Another step would be renaming the default user-name admin to something else, here are three ways to do it.

Related: 13 Tags to Remove from your WordPress Theme

Hello, I am Arun Basil Lal. Thank you for reading!

I am a WordPress product developer and creator of Image Attributes Pro. I am passionate about solving problems and travelling the world.

Divi WordPress Theme - My Review

Divi WordPress Theme
Divi is a WordPress theme that web designers do not want you to know. It comes with a drag-and-drop theme builder. You can build beautiful looking unique websites without touching a line of code. Just choose from one of the many pre-made layouts, or pick elements and arrange them any way you like.

Divi is every WordPress developer's wet dream. Surprise your clients with neat responsive websites and have fun building them.

Divi comes from Elegant Themes. If you enjoy building websites, you *need* an Elegant Themes membership. 87 beautiful themes and 5 plugins for the cost of less than a candy-bar each!

Note: I am an avid user of Divi myself and this is a honest review. I wouldn't recommend something that I do not personally find amazing.


  1. NavaPavan says:

    Seems to be an security issue. Thanks for sharing

Leave a Reply

Your email address will not be published. Required fields are marked *