Customizing loop product image via a hook in Woocommerce
问题 I am customizing woocommerce themes. I stuck on loop product using hook action woocommerce. To call/include the thumbnail image in a loop, we call this hook <?php do_action('woocommerce_before_shop_loop_item_title'); ?> And the thumbnail image appears. I am confused where is the <img src"" .... location? How to edit that code? Thanks 回答1: The hook woocommerce_before_shop_loop_item_title load the image from this function code: if ( ! function_exists( 'woocommerce_template_loop_product