taxexempt_checkout_update_order_review
The WordPress Core taxexempt checkout update order review function.
Description
taxexempt_checkout_update_order_review( $post_data );
Parameters (1)
- 0. $post_data
- The post data.
Usage
if ( !function_exists( 'taxexempt_checkout_update_order_review' ) ) { require_once '/simple-tax-exemption.php'; } // The post data. $post_data = null; // NOTICE! Understand what this does before running. $result = taxexempt_checkout_update_order_review($post_data);
Defined (1)
The function is defined in the following location(s).
- /simple-tax-exemption.php
- function taxexempt_checkout_update_order_review( $post_data ) {
- global $woocommerce;
- $woocommerce->customer->set_is_vat_exempt(FALSE);
- parse_str($post_data);
- if ( isset($tax_exempt_checkbox) && isset($tax_exempt_id) && $tax_exempt_checkbox == '1' && !empty($tax_exempt_id))
- $woocommerce->customer->set_is_vat_exempt(true);
- }