WordPress at Your Fingertips
filter is not described

woocommerce_sort_fees_callback filter-hook . WC 3.8.0

Filter sort fees callback.

Usage

add_filter( 'woocommerce_sort_fees_callback', 'filter_function_name_9565', 10, 3 );
function filter_function_name_9565( $-1, $a, $b ){
	// filter...

	return $-1;
}
$-1(int)
Sort order, -1 or 1.
$a(stdClass)
Fee object.
$b(stdClass)
Fee object.

Changelog

Since 3.8.0 Introduced.

Where the hook is called

WC_Cart_Fees::sort_fees_callback()
woocommerce_sort_fees_callback
woocommerce/includes/class-wc-cart-fees.php 147
return apply_filters( 'woocommerce_sort_fees_callback', $a->amount > $b->amount ? -1 : 1, $a, $b );

Where in WP core the hook is used WooCommerce

Usage not found.