Commenting out Woocommerce actions = bad practice
in Other
Hi, I just needed to add action to 'woocommerce_after_single_product_summary', it didn't work, so I checked the theme and found out that the action is commented out. This is bad practice - you should use something like
That way developers can put the hook back if needed.
Thanx for fixing this
Vasik
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
That way developers can put the hook back if needed.
Thanx for fixing this
Vasik
Comments
we can do this as you want while future updates. It's not a problem for us.
Thanks!