wc_update_260_options

The WooCommerce wc update 260 options function.

Description

wc_update_260_options(); 

Usage

  1. if ( !function_exists( 'wc_update_260_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_260_options(); 
  7.  

Defined (1)

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

/includes/wc-update-functions.php  
  1. function wc_update_260_options() { 
  2. /** 
  3. * woocommerce_calc_shipping option has been removed in 2.6 
  4. */ 
  5. if ( 'no' === get_option( 'woocommerce_calc_shipping' ) ) { 
  6. update_option( 'woocommerce_ship_to_countries', 'disabled' ); 
  7.  
  8. WC_Admin_Notices::add_notice( 'legacy_shipping' );