How to Conceal Your WordPress Version
There may be reasons you don’t wish to disclose that you’re using WordPress, or you may simply wish to disguise which version you’re using. I hope your reasoning isn’t for “security”, because this isn’t truly effective as a security measure. But whatever your reason, here’s how to do it.
First, go to your /wp-content/themes folder, and open the folder for your current theme. There should be a file named “functions.php”. (If this file doesn’t exist, simply create the file.) Open this file, and add the following line to it:
remove_action(’wp_head’, ‘wp_generator’);
That directive tells WordPress to remove the action of displaying the generator (which shows your WordPress version). It’s that simple!
You can do a lot of neat things within the functions.php file, as well – including adding new functions and removing other actions. For instance, you can remove some of the other (possibly useless) header info that WordPress outputs by default:
remove_action(’wp_head’, ‘rsd_link’);
remove_action(’wp_head’, ‘wlwmanifest_link’);
Think of the functions.php file as a way to implement a certain amount of plugin-like functionality, without having to actually install a plugin. If you know how to code in PHP the possibilities are vast.