WordPress at Your Fingertips
function is not described

_wc_get_product_terms_parent_usort_callback() WC 1.0

Sort by parent.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

Int.

Usage

_wc_get_product_terms_parent_usort_callback( $a, $b );
$a(WP_Post) (required)
First item to compare.
$b(WP_Post) (required)
Second item to compare.

Code of _wc_get_product_terms_parent_usort_callback() WC 5.8.0

function _wc_get_product_terms_parent_usort_callback( $a, $b ) {
	if ( $a->parent === $b->parent ) {
		return 0;
	}
	return ( $a->parent < $b->parent ) ? 1 : -1;
}