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.


Top ↑

Source Source

File: packages/woocommerce-admin/src/CategoryLookup.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.