Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Theming Snippets] Remove related products output
@OnlineLogoMaker

This comment has been minimized.

Copy link

commented Mar 24, 2019

It's not working on my store. I add the code with Snippet but the related products still there.
URL sample: https://www.designfreelogoonline.com/logoshop/luxury-alphabet-logo-templates/

Kindly advice what can be done?
I don't want to hide it with CSS, I want to remove it completely.

@friendsfirstphoto

This comment has been minimized.

Copy link

commented Jun 10, 2019

It's not working for me either and I did exactly as suggested.

@marcos-alexandre82

This comment has been minimized.

Copy link

commented Jun 20, 2019

The code that worked for me was:

add_filter('woocommerce_product_related_posts_query', '__return_empty_array', 100);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.