Created
March 17, 2013 17:34
-
-
Save alpipego/5182657 to your computer and use it in GitHub Desktop.
wp_functions remove generator
This file contains 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
// Disable WordPress version reporting as a basic protection against attacks | |
function remove_generators() { | |
return ''; | |
} | |
add_filter('the_generator','remove_generators'); | |
add_filter('the_generator', create_function('', 'return "";')); | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'wlwmanifest_link'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment