WC_Order::get_total_tax_refunded()publicWC 2.3

Get the total tax refunded.

Method of the class: WC_Order{}

No Hooks.

Return

float.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_total_tax_refunded();

Changelog

Since 2.3 Introduced.

WC_Order::get_total_tax_refunded() code WC 8.6.1

public function get_total_tax_refunded() {
	$cache_key   = WC_Cache_Helper::get_cache_prefix( 'orders' ) . 'total_tax_refunded' . $this->get_id();
	$cached_data = wp_cache_get( $cache_key, $this->cache_group );

	if ( false !== $cached_data ) {
		return $cached_data;
	}

	$total_refunded = $this->data_store->get_total_tax_refunded( $this );

	wp_cache_set( $cache_key, $total_refunded, $this->cache_group );

	return $total_refunded;
}