WC_Abstract_Order::is_vat_exempt
Get the filtered VAT exemption for this order.
Method of the class: WC_Abstract_Order{}
Hooks from the method
Returns
bool. Whether the order is exempt from VAT.
Usage
// private - for code of main (parent) class only $result = $this->is_vat_exempt(): bool;
WC_Abstract_Order::is_vat_exempt() WC Abstract Order::is vat exempt code WC 11.3.0
private function is_vat_exempt(): bool {
/**
* Filters whether the order is exempt from VAT.
*
* @since 3.3.0
* @since 11.3.0 Also applied to discounts.
*
* @param bool $is_vat_exempt Whether the order is exempt from VAT.
* @param WC_Abstract_Order $order Order instance.
*/
return (bool) apply_filters( 'woocommerce_order_is_vat_exempt', 'yes' === $this->get_meta( 'is_vat_exempt' ), $this );
}