Skip to content

Instantly share code, notes, and snippets.

@palimadra
Forked from epicdaze/gist:1030943
Created September 29, 2011 13:50
Show Gist options
  • Save palimadra/1250759 to your computer and use it in GitHub Desktop.
Save palimadra/1250759 to your computer and use it in GitHub Desktop.
#wordpress - remove wordpress version number #obfuscate #version
<!-- /* Remove version number from wordpress generated source and RSS feed.
http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/
*/ -->
<!-- /* remove this from header.php remove version from generated page source */ -->
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<!-- /* or add this to functions.php to remove version from generated page source */ -->
<?php remove_action('wp_head', 'wp_generator'); ?>
<!-- /* then add this to functions.php to remove version from rss feed */ -->
<?php function wpbeginner_remove_version() { return ''; } add_filter('the_generator', 'wpbeginner_remove_version'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment