How to remove WordPress version number?

1 Comment

This post is for to remove WordPress version number.

By default WordPress leaves it’s footprints on your site for the sake of tracking. That is how we know that WordPress is the World’s largest Blogging platform. But sometimes this footprint might be a security leak on your site if you are not running the most updated version of WordPress. Because you are providing the hacker with the useful information by telling them which version you are running.
If you are running the most up to date version of WordPress, which we recommend you do, then you do not have to worry about this tutorial at all. But if for some reason you are not, then it is in your best interest to follow this tutorial.
There are many ways to get rid of the WordPress version number from your header. But there is only one correct way to do this.
Some sites will recommend that you open your header.php file and get rid of this code:

Or others will recommend that you open your functions.php and add the following function:
remove_action(‘wp_head’ ‘wp_generator’);

But both of these ways are offering you an incomplete solution. These ways will simply remove the WordPress version number from your head area. So if someone views your website source, they will not be able to see the version.
But a smart hacker who knows about WordPress will simply go to your RSS Feeds, and they will find your version number there because neither of the above codes will remove that number.
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 yourfunctions.php file:

function wpbeginner_remove_version() {
return ”;
add_filter(‘the_generator’, ‘wpbeginner_remove_version’);

By adding this version, you will remove the WordPress version number from all different areas on your site. Above is the right way to remove WordPress Version number.

Delivering the best of our firm to each and every client as cost effectively as we can fine tunes our capabilities performing better and better.

About us and this blog

We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

Digital Marketing Company in Amravati -Google Ads - Facebook Marketing (1)
Digital Marketing Company in Amravati -Google Ads - Facebook Marketing
1 Comment
    • rachellepinkham
    • September 25, 2015

    Its like you learn my mind! You appear to understand so much approximately this,
    like you wrote the e book in it or something. I believe that
    you simply could do with a few p.c. to drive the message home a bit, however other
    than that, this is magnificent blog. A fantastic read.
    I’ll certainly be back.

Leave a Comment

More from our blog

See all posts