×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Remove related products section

Related products are not always required and can be removed with this code snippet.

		/**
 * Remove related products output
 */

add_action('init', 'sc_woo_remove_related_products');

function sc_woo_remove_related_products() {

  remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);

}
	
   View Raw Code ID: 91135