Skip to content

Instantly share code, notes, and snippets.

@mavisland
Created March 6, 2014 05:17
Show Gist options
  • Save mavisland/9383031 to your computer and use it in GitHub Desktop.
Save mavisland/9383031 to your computer and use it in GitHub Desktop.
Hiding the WP version info is a small step to prevent bots from crawling your site, it does not prevent fingerprinting, but every little bit helps. In your theme’s functions.php add the following:
<?php
// remove version info from head and feeds
function complete_version_removal() {
return '';
}
add_filter('the_generator', 'complete_version_removal');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment