tax_exempt_field_update_order_meta

The Woocommerce Super Simple Tax Exemption tax exempt field update order meta function.

Description

tax_exempt_field_update_order_meta( $order_id ); 

Parameters (1)

0. $order_id
The order id.

Usage

  1. if ( !function_exists( 'tax_exempt_field_update_order_meta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-super-simple-tax-exemption/simple-tax-exemption.php'; 
  3.  
  4. // The order id. 
  5. $order_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = tax_exempt_field_update_order_meta($order_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/simple-tax-exemption.php  
  1. function tax_exempt_field_update_order_meta( $order_id ) { 
  2. if ($_POST['tax_exempt_id']) update_post_meta( $order_id, 'Tax Exempt ID', esc_attr($_POST['tax_exempt_id']));