Remove WordPress version from header

Remove WordPress version from header

It’s very easy to track the version of WordPress you are running on your site. Because it’s that easy, it can also mean a security leak. Especially if you don’t update WordPress frequently.

There is an easy way to hide the version number. Just add this code to the functions.php of the theme you’re using.

Always backup your functions.php before changing it!

An alternative way to remove the version number is to edit the header.php of the theme you are using. Open the header.php and remove this code:

Always backup your header.php before changing it!

These changes will get lost when you change to another theme. Make sure to edit the functions.php or header.php of your new theme!

Ronald Heijnes

Since 2008 I have been busy with the functionality, management, maintenance and performance of self hosted WordPress. I like to share this knowledge!

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz
Close Menu