Removing the WordPress Version Number

Displaying the WordPress version number in your website’s source code may help hackers target exploits.  Remove it today!

To see if your site is displaying a WordPress version number view your site’s home page source (in Chrome press <CTRL>+U).

Look towards the top of the source code for the line that starts with <meta name=”generator”

WP Meta Generator

You probably don’t have to worry if you are keeping your website up-to-date regularly and by regularly I mean weekly.

WordPress releases core updates regularly and these contain fixes to known exploits.

Displaying your WordPress version gives hackers valuable information allowing them to target specific weaknesses that have since been fixed in later updates.

Don’t make things easy for them!

Add the following line to your functions.php file located in your theme folder.

remove_action(‘wp_head’, ‘wp_generator’);

Ha ha – in your face Mr Hacker!

Was this article helpful?

Get Your Free Security Fundamentals eBook

Enhance your website security with this free, quick and easy to implement guide.

Keep In Touch


Wil is a dad, WordPress consultant, WordPress developer, business coach and mentor. He co-organizes the WordPress Sydney meetup group and has been on the organising committee for WordCamp Sydney since 2014. He speaks at many special events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.