Skip to content

Instantly share code, notes, and snippets.

Telmo Teixeira telmott

View GitHub Profile
View order-parent-child-term.php
<?php
/**
* Oder Term list by hierarchy.
*
* @param array $terms Array of terms to be hierarchical sorted
* @return array $ordered_terms Array ot terms orderd by parent->child relation
* @author Telmo Teixeira <telmo@widgilabs.com>
*/
function ( array $terms ) {
You can’t perform that action at this time.