wc_update_240_options

The WooCommerce wc update 240 options function.

Description

wc_update_240_options(); 

Usage

  1. if ( !function_exists( 'wc_update_240_options' ) ) { 
  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_240_options(); 
  7.  

Defined (1)

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

/includes/wc-update-functions.php  
  1. function wc_update_240_options() { 
  2. /** 
  3. * Coupon discount calculations. 
  4. * Maintain the old coupon logic for upgrades. 
  5. */ 
  6. update_option( 'woocommerce_calc_discounts_sequentially', 'yes' );