woocommerce_get_order_item_totals filter-hookWC 1.0

Usage

add_filter( 'woocommerce_get_order_item_totals', 'wp_kama_woocommerce_get_order_item_totals_filter', 10, 3 );

/**
 * Function for `woocommerce_get_order_item_totals` filter-hook.
 * 
 * @param  $total_rows  
 * @param  $that        
 * @param  $tax_display 
 *
 * @return 
 */
function wp_kama_woocommerce_get_order_item_totals_filter( $total_rows, $that, $tax_display ){

	// filter...
	return $total_rows;
}
$total_rows
-
$that
-
$tax_display
-

Where the hook is called

WC_Order::get_order_item_totals()
woocommerce_get_order_item_totals
WC_Abstract_Order::get_order_item_totals()
woocommerce_get_order_item_totals
woocommerce/includes/class-wc-order.php 2556
return apply_filters( 'woocommerce_get_order_item_totals', $total_rows, $this, $tax_display );
woocommerce/includes/abstracts/abstract-wc-order.php 2464
return apply_filters( 'woocommerce_get_order_item_totals', $total_rows, $this, $tax_display );

Where the hook is used in WooCommerce

woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php 279
add_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 10, 3 );
woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php 290
remove_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 10 );
woocommerce/includes/emails/class-wc-email-customer-pos-refunded-order.php 390
add_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 10, 3 );
woocommerce/includes/emails/class-wc-email-customer-pos-refunded-order.php 401
remove_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 10 );