>Remove Related Products Output

Remove Related Products Output

Add the following code at the end of your functions.php file located in wp-content/themes/your-theme-name/

/*
* wc_remove_related_products
*
* Clear the query arguments for related products so none show.
* Add this code to your theme functions.php file.
*/
function wc_remove_related_products( $args ) {
return array();
}
add_filter(woocommerce_related_products_args,wc_remove_related_products, 10);
2017-03-22T11:33:51+00:00