Posted by KaiseRCrazY on 17th July 2009

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!

  • del.icio.us
  • Digg
  • Facebook
  • FriendFeed
  • Reddit
  • StumbleUpon
  • Technorati
  • PDF
  • Print

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

No comments yet!

Post your comments