WC_Abstract_Order::is_vat_exempt
Get the filtered VAT exemption for this order.
Метод класса: WC_Abstract_Order{}
Хуки из метода
Возвращает
bool. Whether the order is exempt from VAT.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_vat_exempt(): bool;
Код WC_Abstract_Order::is_vat_exempt() WC Abstract Order::is vat exempt 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 );
}