woocommerce_sort_fees_callback

woocommerce_sort_fees_callback

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('woocommerce_sort_fees_callback') is found 1 times:

  • /includes/class-wc-cart-fees.php line 141
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
         * @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.