WC_Order_Item_Fee::set_tax_status()publicWC 1.0

Set tax_status.

Method of the class: WC_Order_Item_Fee{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Order_Item_Fee = new WC_Order_Item_Fee();
$WC_Order_Item_Fee->set_tax_status( $value );
$value(string) (required)
Tax status.

WC_Order_Item_Fee::set_tax_status() code WC 8.7.0

public function set_tax_status( $value ) {
	if ( in_array( $value, array( 'taxable', 'none' ), true ) ) {
		$this->set_prop( 'tax_status', $value );
	} else {
		$this->set_prop( 'tax_status', 'taxable' );
	}
}