I want to add a hook/action of woocommerce_after_shop_loop_item, this action is located in content-product.php which is used for displaying product content within loops and content-product.php can be called from various modules like product archives, up-sell/cross-sell products, etc. My question, how to know which module is calling content-product.php, let’s say if I want to add action for up-sells only?

Read more here: Adding woocommerce_after_shop_loop_item hook [on hold]


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: