WordPress, by default will automatically generate a meta data that will show the current WordPress version installed on your site. This meta data is inside the head tag. To check if the WordPress version installed on your site is leak or not, you can view the source code of your site or open your site and press Ctrl + U from your favorite browser and it will bring the source code and search for something like the below code in the head section replacing the version with your WordPress version.
<meta name=”generator” content=”WordPress 4.2.2″ />
As you have seen that the version is advertise which is not good for security reason. So to remove this meta generator from your site all you need is to add this line to your theme’s function file.
remove_action( 'wp_head', 'wp_generator' );
After adding the above line to function.php file, upload it back to your server and check if the meta generator is gone from your site.
We hope that this article helps you to remove meta generator from your WordPress site. Subscribe to our email newsletter for more related and useful articles. Or if you have any questions, please feel free to leave it in the comments below. You can find also us on Twitter and Facebook.