WC_Order_Item_Shipping::get_tax_status()publicWC 1.0

Get tax status.

Method of the class: WC_Order_Item_Shipping{}

No Hooks.

Return

String.

Usage

$WC_Order_Item_Shipping = new WC_Order_Item_Shipping();
$WC_Order_Item_Shipping->get_tax_status( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

WC_Order_Item_Shipping::get_tax_status() code WC 9.7.1

public function get_tax_status( $context = 'view' ) {
	$shipping_method = WC_Shipping_Zones::get_shipping_method( $this->get_instance_id() );
	return $shipping_method ? $shipping_method->get_option( 'tax_status' ) : 'taxable';
}