wc_update_300_settings

The WooCommerce wc update 300 settings function.

Description

wc_update_300_settings(); 

Usage

  1. if ( !function_exists( 'wc_update_300_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-update-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_update_300_settings(); 
  7.  

Defined (1)

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

/includes/wc-update-functions.php  
  1. function wc_update_300_settings() { 
  2. $woocommerce_shipping_tax_class = get_option( 'woocommerce_shipping_tax_class' ); 
  3. if ( '' === $woocommerce_shipping_tax_class ) { 
  4. update_option( 'woocommerce_shipping_tax_class', 'inherit' ); 
  5. } elseif ( 'standard' === $woocommerce_shipping_tax_class ) { 
  6. update_option( 'woocommerce_shipping_tax_class', '' );