title: Wordpress - What is the best way to disable the TAG pages of a blog?
body: <p>I dont want the TAG pages to show in my Wordpress, and I want a redirect to the homepage not a noindex.</p>
  
  <p>I cannot use NGINX redirects as my Wordpress in multilingual the word "tag" is translatable it can be changed (and I do not really want to leave it to chance, that in a year when we will add another language I will forget to add this redirect)</p>
  
  <p>Currently I am using this:</p>
  
  <pre><code>public function my_template_include($original_template)
  {
      global $wp_query;
  
  // we dont use tags...
      if(is_tag()){
          wp_redirect('/',301);
          exit();
      }
  }
  
  add_filter('template_include', array($this, 'my_template_include'), 10, 1);
  </code></pre>
  
  <p>But I am pretty sure that there should be a better way then this.</p>
  
  <p>P.S. I have used: unregister_taxonomy_for_object_type
  But, it removed the option to ADD tags but will not remove the current existing tags in the system and will not remove the pages it created!</p>