Home» »How to remove wordpress version meta completely

How to remove wordpress version meta completely

By default wordpress put this meta tag in your theme header to tracking the wordpress users. That is how we know that WordPress is the World’s largest Blogging platform. However, some people with the ability to destroy other people's blogs, otherwise known as hacker, using the information to carry out their evil acts. By knowing which version you are using and know the weaknesses of the versions, and then the criminals smile.

Some people remove the tags from the header for security reasons, as I've described above. But you do not need to bother removing this tag if you are one of the bloggers who actively update the wordpress version. WordPress will make improvements over the previous version every time updated. But if you are a big fan of the old version of wordpress, and do not want to update your wordpress version, then you can remove it from your header theme by following this tutorial.

There are several ways to remove wordpress meta version from your header, one is by removing the meta tag from the header, or by using a script in the file function. There are three methods to be able to remove the wordpress version from your header.

Method 1: Open your header.php file, then find and delete the following code.

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

Method 2: Open your functions.php and add the following code.

remove_action('wp_head', 'wp_generator');

But of the two methods above, it does not completely eliminate wordpress version of your blog. Wordpress version you will still be known by others, because wordpress version still printed in your rss. If you are already using one of the methods above, please check your rss blog, it will look like the screenshot below.



Method 3: In order for you to completely remove your WordPress version number from both your head file and RSS feeds, you will need to add the following function to your functions.php file.

function my_remove_version() {
return '';
}
add_filter('the_generator', 'my_remove_version');

Now your wordpress version completely removed from your blog, and i think nobody will found out. If there are any questions please comment below, I will be happy to answer your questions.

About Author:

Rahman Kurnia is a blogger, SEO fighter, who loves PHP, CSS, HTML and interested in js, ajax, c++ and much more. He love writing something informatif to help others, and to keep his knowledge on the internet.

Follow him @ Twitter | Facebook | Google +

0 comments:

Post a Comment

Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Blog Widget by LinkWithin