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