Remove the WordPress Version Generator

When 2.5.0 was released, the WordPress version generator was moved from being in the template itself into being a wp_head() hook instead. The hook is automatically added so you don’t have as much control over it.

If you want to remove the version:

meta name="generator" content="WordPress 2.8.4"

Add this piece of code to your functions.php file in your theme:

remove_action('wp_head', 'wp_generator');

That bit of code will stop WordPress from adding the WordPress version generator to your source code.

For plugins related to the “version,” you can look on wordpress.org.

It’s a simple, yet effective tutorial, on achieving what you want to get done.

  • Share/Save/Bookmark

Get involved, Vibe with us.

5 Vibes for this post.

  1. ZigPress says:

    Saw this post on your Twitter feed… I created a tiny WordPress plugin to remove this code (and a couple of other tags as well) – you can get it at http://www.zigpress.com/2009/07/14/wordpress-plugin-clean-head/

  2. Nice! looks like a good plugin. Thanks for dropping a note about it

  3. dd says:

    You can also test if the version has been removed by visiting the following site:

    http://sucuri.net/index.php?page=scan

    and scanning your blog. It will also let you know about other security issues that you might have forgotten.

    *btw, it is free.

  4. Raul says:

    thans i am searching this solution long time :D

Trackbacks