Created
March 7, 2019 21:13
-
-
Save olkitu/de0a399fefef13f2140789bce45166f3 to your computer and use it in GitHub Desktop.
Hide WordPress 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
<?php | |
remove_action('wp_head', 'wp_generator'); | |
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