woocommerce_sort_fees_callback

woocommerce_sort_fees_callback

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_sort_fees_callback') 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.