How to hide the WordPress Version

September 11, 2023 / WordPress

In this article, you will learn how to hide the WordPress version. Hiding the WordPress version is a security measure that adds a layer of protection against potential attackers.

You can hide your WordPress version using following ways-

  1. By editing Generator Meta Tag –  You can remove the WordPress version number manually from the generator Meta tag, if you are sure about your coding knowledge.
    1. Enter the WordPress themes directory. You can find it in-
      /wp-content/themes/
    2. Add the below line of code at the end of the activated WordPress theme’s file function.php.
      remove_action(‘wp_head’, ‘wp_generator’)
  2. By utilising version removal function –
    1. Enter the WordPress themes directory. You can find it in-
      /wp-content/themes/
    2. Add the below line of code at the end of the activated WordPress theme’s file function.php.
      function remove_version_info() {
      return ”;
      }
      add_filter(‘the_generator’, ‘remove_version_info’);

Important note- Make any changes only when you are sure about its utility and function.

By hiding the WordPress version, you can increase the security of your website. If you are concerned about protecting your site from spam and malicious attacks, you can add captcha protection to your WordPress site which will help increase the security of your site and keep it safe from unwanted intrusions.

Hope you liked our article! If you have any queries regarding this, you can directly contact our technical team and they will assist you flawlessly.

Dominos Search