title: How can exclude term from get_terms by term name not by term id
body: <p>My code below. It does not work to delete using the terms. I need it to work like this and not delete by ID.</p>
  
  <pre><code>$terms = get_terms( 'MY_TAXONOMY', array( 
                          'orderby' =&gt; 'name',
                          'order'   =&gt; 'ASC',
                          'exclude'  =&gt; array(),
  ) );
  $exclude = array("MY TERM", "MY TERM 2", "MY TERM 3");
  $new_the_category = '';
  foreach ( $terms as $term ) {
      if (!in_array($term-&gt;term_name, $exclude)) {
          $new_the_category .= '&lt;div class="post hvr-grow"&gt;&lt;li&gt;&lt;strong&gt;&lt;a id="lista" href="'.esc_url( get_term_link( $term ) ) .'"&gt;'.$term-&gt;name.'&lt;/a&gt;'. ' ('. $term-&gt;count . ')&lt;/strong&gt;&lt;/li&gt;&lt;/div&gt;';
      }
  }
  echo substr($new_the_category, 0);
  </code></pre>