How to Remove WordPress Version to Protect Site from Hackers?

WordPress is the largest blogging platform. You can create blog free with this. Even If you have a custom domain & hosting, you can install WordPess CMS on your domain throw hosting control panel. This process is really simple.

As WordPress is the first choice for 1/3 people to make a website. That’s why web hackers are always active to hack. So it’s very important aspect to prevent a site from hackers.

There are many reasons for hacking a WordPress site. One of the best reasons is that WordPress version or serial number. Gradually the WordPress version number automatically includes theme’s head section after installing WordPress.

When a hacker takes a decision to hack a site, they usually try to find the version number. If you use the old version, hackers can attempt to hack your site easily. So try to up to date WordPress version on your site.

Remove WordPress Version

Now, the question is that how to find WordPress version number and remove them?

Yes, in this blog post I’m going to share an awesome tip regarding find and remove WordPress version with the simple and 100% real way.

Let’s start.

You can remove WordPress version or serial number in two ways, one is manually another is Plugin.

Firstly, I will guide you how to remove version manually?

Before going to remove or hide WordPress version from your website. You can check your WordPress current version.

How to Find WordPress Version Number?

This process is pretty simple. Just simply open your site.  Press keyboard CTRL+U to view the source code.

A new tab will be open. Now Press Ctrl+F. And type “generator” Word to find WordPress version number.

You will notice the following Meta function. The generator Meta tag in the header.

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

How to Remove WordPress Version Manually?

1st Method: To manfully remove version. Just simply go to site code editor then open funcation.php file. And add the following function:

remove_action(‘wp_head’, ‘wp_generator’);

2nd Method: Open your header.php file and get rid the following code:

<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” />

How to Hide WordPress Version Number Via Plugin?

If you think the manual process is difficult for you, you can install Remove WordPress Version plugin. And activate the plugin through the ‘Plugins’ menu in WordPress.

Then Go to your homepage, press CTRL+U to view source code, and confirm that the version number has been removed from Meta.

But the above both ways are not a real way to protect a site from hackers. Because those ways are only offering to remove version from the head area.

If someone views your website source code, they will not be able to see the WordPress version number.

But an expert WordPress hacker will be able to easily find the version number from RSS feeds. Because you have removed version only from the head area by those ways. But you did not remove from RSS feeds.

So if you want to fully protect your site from smart WordPress hackers, you need to remove or hide WordPress version number both head and RSS feeds areas.

How To Remove WP Version Number From RSS Feeds?

Completely remove your WorPress version number from both head and RSS feeds section. You have to add the following function to your functions.php file:

function wpbeginner_remove_version() {

return ”;


add_filter(‘the_generator’, ‘wpbeginner_remove_version’);

By this way, you will be able to remove your WorPress version number from all different areas on your site. The above process is an only real process for hiding or removing WordPress version from your site.

Note: I strongly recommend you to update latest WordPress version on your site. This is one of the best ways to protect a site from malicious hackers.

Leave a Reply