Skip to content

Instantly share code, notes, and snippets.

@alpipego
Created March 17, 2013 17:34
Show Gist options
  • Save alpipego/5182657 to your computer and use it in GitHub Desktop.
Save alpipego/5182657 to your computer and use it in GitHub Desktop.
wp_functions remove generator
// 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