Skip to content

Instantly share code, notes, and snippets.

@epicdaze
Created June 17, 2011 06:11
Show Gist options
  • Save epicdaze/1030943 to your computer and use it in GitHub Desktop.
Save epicdaze/1030943 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