Skip to content

Instantly share code, notes, and snippets.

@dartiss
Created November 15, 2017 16:06
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 dartiss/1088d638c87d31f1e24126609dab812b to your computer and use it in GitHub Desktop.
Save dartiss/1088d638c87d31f1e24126609dab812b to your computer and use it in GitHub Desktop.
Remove WordPress version from header
<?php
function site_version_removal() { return ''; }
add_filter( 'the_generator', 'site_version_removal' );
?>
@dartiss
Copy link
Author

dartiss commented Nov 15, 2017

Added to your theme's functions.php, this will remove the WordPress version from your site's header. A useful security caution, as it prevents you from potentially giving away the fact that you may be using an out-of-date, insecure version of WordPress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment