woocommerce_product_related_posts_relate_by_tag filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_product_related_posts_relate_by_tag', 'filter_function_name_651', 10, 2 ); function filter_function_name_651( $true, $product_id ){ // filter... return $true; }
- $true
- -
- $product_id
- -
Where the hook is called
woocommerce_product_related_posts_relate_by_tag
woocommerce/includes/wc-product-functions.php 897
$tags_array = apply_filters( 'woocommerce_product_related_posts_relate_by_tag', true, $product_id ) ? apply_filters( 'woocommerce_get_related_product_tag_terms', wc_get_product_term_ids( $product_id, 'product_tag' ), $product_id ) : array();