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
if ( !function_exists( 'tax_exempt_field_update_order_meta' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-super-simple-tax-exemption/simple-tax-exemption.php'; } // The order id. $order_id = null; // NOTICE! Understand what this does before running. $result = tax_exempt_field_update_order_meta($order_id);
Defined (1)
The function is defined in the following location(s).
- /simple-tax-exemption.php
- function tax_exempt_field_update_order_meta( $order_id ) {
- if ($_POST['tax_exempt_id']) update_post_meta( $order_id, 'Tax Exempt ID', esc_attr($_POST['tax_exempt_id']));
- }