How to Hide WordPress Version On Header?
Hello buddies. This is the first simple and important recipe/function of WordPress. Because if your WP version is shown on header, it can be a security risk. At this post i will give you a simple code and you will change your header. You have to use this code because we can’t change it directly in header.Yes as i told i will give a short code. You will import this code to your functions.php in your theme folder. It will remove the “generator” tag form header.
Here is the Code:
remove_action('wp_head', 'wp_generator');
You can add this code before ?> in functions.php.
After that if you use Firefox, just right click on the page and click Show Page Info. As you see there is no Generator tag in this information.
Have a nice day!
- Wordpress















Made by Symmetric Web
Distributed by Smashing Magazine
No comments yet!