wp-content » themes » functions.php » How to remove meta generator tag from WordPress

How to remove meta generator tag from WordPress

WordPress has an HTML meta generation tag that shows that your website is running WordPress and which version exactly.

If you right-click on this page and choose View Source, you can find this tag by searching for “generator” in the source code.

You should see something similar to:

<meta name=”generator” content=”WordPress 6.0.3″ />

This code may also be used to detect your software by bots or programs like WPScan and BuiltWith, which poses a security concern. Today, there are dozens of various ways to tell if a website is powered by WordPress, so if someone really wants it bad enough, he will eventually discover it. 🙂

To disable the meta generator tag from WordPress simply add the following to your active theme functions.php file:

remove_action('wp_head', 'wp_generator');

If you want to remove this and many more meta generation tags from WordPress check this free plugin:

See also  How to Backup a WordPress site using Softaculous

Was this post helpful?

Leave a Comment

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.