title: Woocommerce content after short description - why not shown to logged out users?
body: <p>I try to add special content to woocommerce products that have a special tag.
  I hook into the short description.</p>
  <p>This I got to work fine. So I thought...</p>
  <p>Now I see: The content is there all right as long as I am logged in. When viewed not logged in, I can't see anything of my special content. Seems that my code is executed only for logged in users/admin. But how can this be?</p>
  <pre><code>add_filter('woocommerce_short_description', 'EPREL_content', 10, 2);
  function EPREL_content( $EPRELlabel ) {
      global $product;
      // Here define your specific product tag terms (can be Ids, slugs or names)
      $product_tags = array( 'EPREL' );
  
      if( has_term( $product_tags, 'product_tag', get_the_ID() ) ) {
          $EPRELlabel .= '&lt;div class=&quot;custom_content&quot;&gt;&lt;a data-elementor-open-lightbox=&quot;yes&quot; href=/EPREL/EUEVK_' . $product-&gt;get_sku() . '.png&gt;&lt;img src=&quot;https://econlux.de/EPREL/G.svg&quot; width=&quot;80px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class=&quot;mini&quot; target=&quot;_blank&quot; href=/EPREL/EUEVK_' . $product-&gt;get_sku() . '.png.pdf&gt;Produktdatenblatt&lt;/div&gt;';
      }
      return $EPRELlabel;
  } 
  </code></pre>
  <p>The product to test is here:
  <a href="https://econlux.de/produkt/solarstinger-nanoflex-fresh/" rel="nofollow noreferrer">https://econlux.de/produkt/solarstinger-nanoflex-fresh/</a></p>
  <p>(only that you will not see any of the content, I fear)</p>
  <p>I looks like that, when I am logged in:
  <a href="https://i.stack.imgur.com/cBuPg.png" rel="nofollow noreferrer">Screenshot of the extra content inserted</a></p>
  <p>Can anyone hint me to why the code does not work for page visitors but works ok for me when logged in (admin user)?</p>
  <p>Additional info in case it matters: I use YITH request a quote to hide prices and cart button and show qoute button instead. But this should not affect the short-description, should it? Anyway Prices are hidden from me when logged in too, but my extra content is shown.</p>
  <p>Thank you very much,
  nici-</p>