How To Remove The WordPress Version Number From Your Source Code

Sun, Aug 16, 2009

Maintaining WordPress

One way hackers might try to gain more information about your blog is learning what version of WordPress you’re using by viewing your source code. Here’s how to remove that piece of information.

Just paste this code into your functions.php file:

remove_action(‘wp_head’, ‘wp_generator’);

I’d like to give credit to the good guys over at Digging Into WordPress. It is there where I first found this code.

,
John's Wishlist

Leave a Reply