Skip to content

Instantly share code, notes, and snippets.

@fueledbyboredom
Created February 14, 2017 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fueledbyboredom/54ecfe00dacc08b1e0fc51e34730c26f to your computer and use it in GitHub Desktop.
Save fueledbyboredom/54ecfe00dacc08b1e0fc51e34730c26f to your computer and use it in GitHub Desktop.
This will remove the WordPress version number from the header, this information is also available in the "readme.html" file in the root of the WordPress directory, so it would be a good idea to remove that file as well.
<?php
remove_action('wp_head', 'wp_generator');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment