title: How to use "has_term" correctly
body: <p>Im working with the single product page and I need to have a different image (depending on the category) after the add to cart button.</p>
  
  <p>I tried this code but it doesn't show me the image that I need</p>
  
  <pre><code>add_action ( 'woocommerce_after_add_to_cart_button', 'content_after_button' );
  function content_after_button() {
  if (has_term( 'Categoria', 'Accesorios' ) ) {
  echo 'https://prueba.soygorrion.com.ar/wp-content/uploads/2019/08/iconos2.jpg';
  }
  </code></pre>
  
  <p>I think im using has_term in the wrong way.</p>
  
  <p>What im trying to accomplish is: 
  I have a parent category that is "Accesorios" and inside that I have other child categories like "Billeteras". For each one of this child categories it has to show a diferent image.</p>
  
  <p>thank you</p>