woocommerce_order_amount_line_subtotal хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_order_amount_line_subtotal', 'wp_kama_woocommerce_order_amount_line_subtotal_filter', 10, 5 );

/**
 * Function for `woocommerce_order_amount_line_subtotal` filter-hook.
 * 
 * @param  $subtotal 
 * @param  $that     
 * @param  $item     
 * @param  $inc_tax  
 * @param  $round    
 *
 * @return 
 */
function wp_kama_woocommerce_order_amount_line_subtotal_filter( $subtotal, $that, $item, $inc_tax, $round ){

	// filter...
	return $subtotal;
}
$subtotal
-
$that
-
$item
-
$inc_tax
-
$round
-

Где вызывается хук

WC_Abstract_Order::get_line_subtotal()
woocommerce_order_amount_line_subtotal
woocommerce/includes/abstracts/abstract-wc-order.php 1861
return apply_filters( 'woocommerce_order_amount_line_subtotal', $subtotal, $this, $item, $inc_tax, $round );

Где используется хук в WooCommerce

Использование не найдено.