Exclude specific product tags from related products in WooCommerce 3+ [closed]
The first parameter of the filter gets its value from function wc_get_product_term_ids: http://hookr.io/filters/woocommerce_get_related_product_tag_terms/ This function returns an array of term_ids instead of objects: https://docs.woocommerce.com/wc-apidocs/source-function-wc_get_product_term_ids.html#860-871 So you can match the term id values directly or you can use get_term_by to get one of the term objects in the comparison. e.g. getting the term on the right … Read more