woocommerce_sort_fees_callback, $a->amount > $b->amount ? -1 : 1, $a, $b
woocommerce_sort_fees_callback, $a->amount > $b->amount ? -1 : 1, $a, $b
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_sort_fees_callback, $a->amount > $b->amount ? -1 : 1, $a, $b') is found 1 times:
- /includes/class-wc-cart-fees.php line 141
* @param int Sort order, -1 or 1. * @param stdClass $a Fee object. * @param stdClass $b Fee object. */ return apply_filters( 'woocommerce_sort_fees_callback', $a->amount > $b->amount ? -1 : 1, $a, $b ); } /** * Generate a unique ID for the fee being added. * * @param string $fee Fee object.