How to unhook hooks in Woocommerce

In file themes/your_template/functions.php (in the last line):

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );

If you want to place the element into another place in frontend, just remove_action from previous place and add_action to the new place:

add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_add_to_cart', 10 );
(Visited 17 times, 1 visits today)

Leave a comment

Your email address will not be published. Required fields are marked *