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

Filter WooCommerce formatted order total.

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

add_filter( 'woocommerce_get_formatted_order_total', 'wp_kama_woocommerce_get_formatted_order_total_filter', 10, 4 );
function wp_kama_woocommerce_get_formatted_order_total_filter( $formatted_total, $order, $tax_display, $display_refunded ){
	// filter...

	return $formatted_total;
}
$formatted_total(строка)
Total to display.
$order(WC_Order)
Order data.
$tax_display(строка)
Type of tax display.
$display_refunded(true|false)
If should include refunded value.

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

WC_Order::get_formatted_order_total()
woocommerce_get_formatted_order_total
WC_Abstract_Order::get_formatted_order_total()
woocommerce_get_formatted_order_total
woocommerce/includes/class-wc-order.php 196
return apply_filters( 'woocommerce_get_formatted_order_total', $formatted_total, $this, $tax_display, $display_refunded );
woocommerce/includes/abstracts/abstract-wc-order.php 1937
return apply_filters( 'woocommerce_get_formatted_order_total', $formatted_total, $this );

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

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