Skip to content

Instantly share code, notes, and snippets.

@woogist
Created March 2, 2015 11:07
Show Gist options
  • Save woogist/c8941070f22e611c972d to your computer and use it in GitHub Desktop.
Save woogist/c8941070f22e611c972d to your computer and use it in GitHub Desktop.
/**
* Does not filter related products by tag
*/
add_filter( 'woocommerce_product_related_posts_relate_by_tag', '__return_false' );
/**
* Does not filter related products by category
*/
add_filter( 'woocommerce_product_related_posts_relate_by_category', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment