Anyone that checks the source code of your site can easily reveal what version of WordPress you are running and if you aren’t good at staying up with the latest updates this can be a welcome sign for intruders.
So a good practice is to hide your WordPress install version.
How to Hide Your WordPress Version
WPBeginner has a great code snippet you can use to remove the WordPress version. Simply add the following code to your functions.php file:
function wpversion_remove_version() { return ''; } add_filter('the_generator', 'wpversion_remove_version');
If you are not feeling comfortable doing this, please check with your web developer first.
That’s it!