Commenting out Woocommerce actions = bad practice

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

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

Sign In or Register to comment.