Site icon SumTips

Remove WordPress Meta Generator tag

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:

  1. Login into your WordPress Admin Panel.
  2. Go to Appearance -> Editor and click on  Theme Functions (functions.php) from the list of theme files.
  3. Just before the closing “?>” tag, add the following:
  4. remove_action(’wp_head’, ‘wp_generator’);
  5. Click the Update file button to save changes.

That’s it! Now go view the source of your site, the <meta name=”generator” content=”WordPress” /> should be removed.

Exit mobile version