2017-06-15 31 views

回答

1

你可以使用get_terms爲:

$terms = get_terms(['taxonomy' => 'product_cat','hide_empty' => false, 'parent' => 0]); 

希望這會有所幫助。

相關問題