Function wc_get_product_terms
Wrapper for wp_get_post_terms which supports ordering by parent.
NOTE: At this point in time, ordering by menu_order for example isn't possible with this function. wp_get_post_terms has no filters which we can utilise to modify it's query. https://core.trac.wordpress.org/ticket/19094
Parameters summary
integer |
$product_id |
|
string |
$taxonomy |
|
array |
$args = array() |
Return value summary
array
|