CategoryLookup::unflatten_terms( array $hierarchy, array $terms, integer $parent )
Convert flat terms array into nested array.
Description Description
Parameters Parameters
- $hierarchy
-
(Required) Array to put terms into.
- $terms
-
(Required) Array of terms (id=>parent).
- $parent
-
(Required) Parent ID.
Source Source
File: packages/woocommerce-admin/src/CategoryLookup.php