woocommerce_order_amount_item_subtotal хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_order_amount_item_subtotal', 'filter_function_name_3651', 10, 5 ); function filter_function_name_3651( $subtotal, $that, $item, $inc_tax, $round ){ // filter... return $subtotal; }
- $subtotal
- -
- $that
- -
- $item
- -
- $inc_tax
- -
- $round
- -
Где вызывается хук
woocommerce_order_amount_item_subtotal
woocommerce/includes/abstracts/abstract-wc-order.php 1751
return apply_filters( 'woocommerce_order_amount_item_subtotal', $subtotal, $this, $item, $inc_tax, $round );