Created
November 15, 2017 16:06
-
-
Save dartiss/1088d638c87d31f1e24126609dab812b to your computer and use it in GitHub Desktop.
Remove WordPress version from header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function site_version_removal() { return ''; } | |
add_filter( 'the_generator', 'site_version_removal' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.