Remove WordPress version

When a visitor looks at your site, they can often see which version of WordPress you are running. For security reasons, it’s often best to hide the version numbers in case there are any vulnerabilities you are yet to patch with an update. Use this code to hide your WordPress version number:

// Remove the version number of WP
// Warning - this info is also available in the readme.html file in your root directory - delete this file!
remove_action('wp_head', 'wp_generator');

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.