Code Snippet
Remove WP Generator Meta Tag
It can be considered a security risk to make your wordpress version visible and public you should hide it.
Put in functions.php file in your theme:
remove_action('wp_head', 'wp_generator');
It can be considered a security risk to make your wordpress version visible and public you should hide it.
remove_action('wp_head', 'wp_generator');
this so doesn’t work.
It’s currently working on this very site.
It works fine for me. Thanks Chris.
Btw, for those who are obsessed with high level of security, this plugin could be of some help.
Secure WordPress
Thank you Chris it work fine for me
Wow, this works like a charm. It has been removed on all pages.
I did not think that removing page generator is just so easy like this.
Thanks for sharing.
Thank you Chris it work fine for me, nice tips :)
Very nice works perfectly!
Thanks for sharing.
And that snippet of code still works like a champ, today.
One thing I remember from a few years ago when trying to remove the WP version generator was the specific theme I was using (apologies for not remembering which one it was) actually had some WP Version generator code in the <head> section of the theme’s header.php files. So, not only was I getting two WP version lines in the output code, this type of version “de-generator” only removed one of them. About pulled my hair out trying to solve the challenge! Finally did, however.
Hi Chris, I’m the one that tweeted you :)
Thanks for the code, I was trying to edit the wp_head(); function !! :D
Thanks again
Connor
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.