How Remove “Generator” Meta Tag

 In Security

How Remove “Generator” Meta Tag

Some consider the removal of the “generator” meta tag (which informs anyone who cares to look of what version of WordPress your site is running) to be an obvious step to increasing your site’s security. But whilst you should always keep your WordPress installation up to date (therefore making the removal of the tag pointless), that is not always practically possible (for instance, when working with a client’s site).

Removing the “generator” tag is a piece of cake – just use one liner:

add_filter('the_generator', create_function('', 'return "";'));
Recommended Posts

Start typing and press Enter to search