Last active
October 16, 2017 17:54
-
-
Save jimi008/243f94c01b4cf4e3cfc13944ff85d0b3 to your computer and use it in GitHub Desktop.
Remove Wordpress version meta from page and RSS
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 | |
// hide the meta tag generator from head and rss | |
function disable_version() { | |
return ''; | |
} | |
add_filter('the_generator','disable_version'); | |
remove_action('wp_head', 'wp_generator'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment