woocommerce_order_amount_item_subtotal
Usage
add_filter( 'woocommerce_order_amount_item_subtotal', 'wp_kama_woocommerce_order_amount_item_subtotal_filter', 10, 5 );
/**
* Function for `woocommerce_order_amount_item_subtotal` filter-hook.
*
* @param $subtotal
* @param $that
* @param $item
* @param $inc_tax
* @param $round
*
* @return
*/
function wp_kama_woocommerce_order_amount_item_subtotal_filter( $subtotal, $that, $item, $inc_tax, $round ){
// filter...
return $subtotal;
}
- $subtotal
- -
- $that
- -
- $item
- -
- $inc_tax
- -
- $round
- -
Where the hook is called
woocommerce_order_amount_item_subtotal
woocommerce/includes/abstracts/abstract-wc-order.php 2042
return apply_filters( 'woocommerce_order_amount_item_subtotal', $subtotal, $this, $item, $inc_tax, $round );