woocommerce_order_is_vat_exempt │ filter-hook │ WC 3.3.0

Filters whether the order is exempt from VAT.

Usage

add_filter( 'woocommerce_order_is_vat_exempt', 'wp_kama_woocommerce_order_is_vat_exempt_filter', 10, 2 );

/**
 * Function for `woocommerce_order_is_vat_exempt` filter-hook.
 * 
 * @param bool              $is_vat_exempt Whether the order is exempt from VAT.
 * @param WC_Abstract_Order $order         Order instance.
 *
 * @return bool
 */
function wp_kama_woocommerce_order_is_vat_exempt_filter( $is_vat_exempt, $order ){
	// filter...
	return $is_vat_exempt;
}
$is_vat_exempt(true|false)
Whether the order is exempt from VAT.
$order(WC_Abstract_Order)
Order instance.

Changelog

Since 3.3.0 Introduced.
Since 11.3.0 Also applied to discounts.

Where the hook is called

WC_Abstract_Order::is_vat_exempt()
woocommerce_order_is_vat_exempt
woocommerce/includes/abstracts/abstract-wc-order.php 2383
return (bool) apply_filters( 'woocommerce_order_is_vat_exempt', 'yes' === $this->get_meta( 'is_vat_exempt' ), $this );

Where the hook is used in WooCommerce

Usage not found.