Created
June 17, 2011 06:11
-
-
Save epicdaze/1030943 to your computer and use it in GitHub Desktop.
#wordpress - remove wordpress version number #obfuscate #version
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
<!-- /* 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