woocommerce_order_is_vat_exempt

woocommerce_order_is_vat_exempt

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_order_is_vat_exempt') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1780
    			$found_classes      = array_intersect( array_merge( array( '' ), WC_Tax::get_tax_class_slugs() ), $this->get_items_tax_classes() );
    			$shipping_tax_class = count( $found_classes ) ? current( $found_classes ) : false;
    		}
    
    		$is_vat_exempt = apply_filters( 'woocommerce_order_is_vat_exempt', 'yes' === $this->get_meta( 'is_vat_exempt' ), $this );
    
    		// Trigger tax recalculation for all items.
    		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {
    			if ( ! $is_vat_exempt ) {
    				$item->calculate_taxes( $calculate_tax_for );
    			} else {