The Right Way to Remove WordPress Version Number

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:

Tables can't be imported directly. Please insert an image of your table which can be found here.

1

Or others will recommend that you open your functions.php and add the following function:

Tables can't be imported directly. Please insert an image of your table which can be found here.

1

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 your functions.php file:

Tables can't be imported directly. Please insert an image of your table which can be found here.

1 2 3 4

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.