Hide WordPress Version

Fundamental 32 views
+1
0 Flares 0 Flares ×

Outdated WordPress installations can cause large security holes in your website and the longer you leave it the more chances there is of someone gaining access to your website. This small 4 lines of code will hide your current WordPress version to stop people finding out what version you are using. If they don’t know the version its harder to hack.

<?php 
// Hide WordPress Version

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

// While this line removes the WordPress version from the head tags and the RSS Feeds, you will still need to remove the readme.html file from the root of your WordPress install

For Reference:

Top 10 Snippets

Provided by: WP Daily
Tagged with:
Posted in Wordpress

Discuss:

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.

Login

Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×