_wc_get_product_terms_parent_usort_callback()
Sort by parent.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Return
Int
.
Usage
_wc_get_product_terms_parent_usort_callback( $a, $b );
_wc_get_product_terms_parent_usort_callback() wc get product terms parent usort callback code WC 8.6.1
function _wc_get_product_terms_parent_usort_callback( $a, $b ) { if ( $a->parent === $b->parent ) { return 0; } return ( $a->parent < $b->parent ) ? 1 : -1; }