If you are running a WordPress site, then anyone can know which version you are on by simply viewing the source code. So, someone with the intent of hacking your site can use vulnerabilities for that particular version and get success.
Here’s how you can remove this tag:
- Login into your WordPress Admin Panel.
- Go to Appearance -> Editor and click on Theme Functions (functions.php) from the list of theme files.
- Just before the closing “?>” tag, add the following:
- Click the Update file button to save changes.
remove_action(’wp_head’, ‘wp_generator’);
That’s it! Now go view the source of your site, the <meta name=”generator” content=”WordPress” /> should be removed.