Get a list of siblings term ids from current product category in WooCommerce
I want to retrieve a list of term Ids based on the current category ID. At the moment I'm using the following code: $product_cat_items = get_queried_object(); $product_cat_id = $product_cat_items->term_id; $product_cat_child = get_term($product_cat_id, 'product_cat'); $product_cat_parent = $product_cat_child->parent; $product_cat_related= get_terms('product_cat', array( 'parent'…