WordPress at a glance
filter is not described

woocommerce_product_related_posts_relate_by_category filter-hook . WC 1.0

We want to query related posts if they are not cached, or we don't have enough.


add_filter( 'woocommerce_product_related_posts_relate_by_category', 'filter_function_name_2619', 10, 2 );
function filter_function_name_2619( $true, $product_id ){
	// filter...

	return $true;

Where the hook is called

woocommerce/includes/wc-product-functions.php 896
$cats_array = apply_filters( 'woocommerce_product_related_posts_relate_by_category', true, $product_id ) ? apply_filters( 'woocommerce_get_related_product_cat_terms', wc_get_product_term_ids( $product_id, 'product_cat' ), $product_id ) : array();

Where in WP core the hook is used WooCommerce

Usage not found.