How To Remove Meta Generator WordPress Version Tags?

Sometimes <meta name=”generator” content=”WordPress x.x.x” /> can put in a security risk because anyone can check which WordPress version you are using from the page source. It’s better to remove the meta generator tags and version from the head area.

There is no doubt that WordPress is one of the secure CMS. Tons of new users are joining this community regularly.

But keeping your WordPress version number hidden from the public is for your safety. The first job for a hacker is to find out which CMS you are using and what’s the version of your CMS. Then they will dig into figure out a hole in that version.

Anyone can check a webpage source and in the head area, they will see something like the following screenshot. It shows which WordPress version you are using.

					<meta name="generator" content="WordPress 5.7.2" />

There are two ways to remove the version number. The first one is using a code and the second one by using Adminify Plugin.

Remove Meta Generator WordPress Version using Code

Navigate to your active theme directory. Edit fu nction.php file and paste the following code.

					// Remove WordPress Version Number
remove_action('wp_head', 'wp_generator'); // Remove WordPress Generator Version
add_filter('the_generator', '__return_false'); // Remove Generator Name From Rss Feeds.


Now save it and you will see the WordPress version number is gone from your page source.

Cons: If you update your Theme, it will update your function.php file. That’s why you have to copy-paste the code always after updating the Theme. To prevent the issue, you can use the Adminify plugin or you can use a child theme for your WordPress website save the code inside the child theme.

Remove meta generator WordPress version using Adminify

No coding is required here. Just make sure you have activated Adminify plugin.

Navigate to WP Adminify Tweaks settings. Click on Tweaks and the first one is “Remove Generator Version”. Just enable this tweak and save it.

Check your webpage source and you will see the version number is hidden.

Remove WordPress Generator version
Was this article helpful?

© 2021-2024 - Adminify | All rights reserved

WP Adminfy accepted payment methods