title: show custom text for products with specific woo commerce category
body: <p>I'm trying to show custom text for products in a specific woo commerce category.
  This is the code I added to function.php , but it shows the text in the category page not the products page.</p>
  
  <pre><code>add_action( 'woocommerce_after_main_content', 'add_my_text' );
  function add_my_text() {
      if ( is_product_category( 'category1' ) ) {
          echo '&lt;p&gt;This is my extra text.&lt;/p&gt;';
      }    
  }
  </code></pre>
  
  <p>p.s. is it any good to add "if (function_exists(add_action))" at the beginning?</p>