WC_Order_Item_Fee::set_tax_class( string $value )

Set tax class.


Description Description


Parameters Parameters

$value

(Required) Tax class.


Top ↑

Source Source

File: includes/class-wc-order-item-fee.php

	public function set_tax_class( $value ) {
		if ( $value && ! in_array( $value, WC_Tax::get_tax_class_slugs(), true ) ) {
			$this->error( 'order_item_fee_invalid_tax_class', __( 'Invalid tax class', 'woocommerce' ) );
		}
		$this->set_prop( 'tax_class', $value );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.