Forums
Home / Plugin: WooCommerce / how to remove related products
(@alysemitten)
8 years, 10 months ago
In the product page of woocommerce there is the ability to show You may also like…and Related Products. Our client would like the related products portion hidden. How do we remove that from the pages globally?
https://wordpress.org/plugins/woocommerce/
(@terrytsang)
You need to add below code into your theme functions.php:
function wc_remove_related_products( $args ) { return array(); } add_filter('woocommerce_related_products_args','wc_remove_related_products', 10);