title: Hide custom product tab if content is empty in WooCommerce single products
body: <p>I created a field in ACF plugin. I added the code below to show the data as a custom tab but the tab is always visible even if the field is empty. What am I missing?</p>
  <pre><code>
  // 1.Displays the tab on every product page
  add_filter( 'woocommerce_product_tabs', 'woo_new_tab' );
      function woo_new_tab( $tabs ) { 
      // Adds the new tab 
          if (!empty(get_the_content())) {
              $tabs['application'] = array(
                  'title'     =&gt; __( 'Application', 'woocommerce' ),
                  'priority'  =&gt; 20,
                  'callback'  =&gt; 'woo_new_tab_content'
              );
          return $tabs;
          }
      }
  
  // the callback (refer to https://www.advancedcustomfields.com/resources/code-examples/) for more info
  function woo_new_tab_content() {
  // The new tab content
  //Working with Array values (checkbox, select, relationship, repeater) use below
  
      $values = get_field('application'); //field name
      if($values){
          echo '&lt;ul&gt;';
          foreach($values as $value){
              echo '&lt;li&gt;' . $value . '&lt;/li&gt;';
          }
          echo '&lt;/ul&gt;';
      }
  }
  </code></pre>