woocommerce_get_order_item_totals_excl_free_fees
Usage
add_filter( 'woocommerce_get_order_item_totals_excl_free_fees', 'wp_kama_woocommerce_get_order_item_totals_excl_free_fees_filter', 10, 2 );
/**
* Function for `woocommerce_get_order_item_totals_excl_free_fees` filter-hook.
*
* @param $condition
* @param $id
*
* @return
*/
function wp_kama_woocommerce_get_order_item_totals_excl_free_fees_filter( $condition, $id ){
// filter...
return $condition;
}
- $condition
- -
- $id
- -
Where the hook is called
woocommerce_get_order_item_totals_excl_free_fees
woocommerce/includes/abstracts/abstract-wc-order.php 2392
if ( apply_filters( 'woocommerce_get_order_item_totals_excl_free_fees', empty( $fee['line_total'] ) && empty( $fee['line_tax'] ), $id ) ) {