state_defaultSwitchWooccm

The WooCommerce Checkout Manager state defaultSwitchWooccm function.

Description

state_defaultSwitchWooccm(); 

Usage

  1. if ( !function_exists( 'state_defaultSwitchWooccm' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/classes/main.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = state_defaultSwitchWooccm(); 
  7.  

Defined (1)

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

/includes/classes/main.php  
  1. function state_defaultSwitchWooccm() { 
  2. $options = get_option( 'wccs_settings' ); 
  3. if( !empty($options['checkness']['per_state']) && !empty($options['checkness']['per_state_check']) ) { 
  4. return ''.$options['checkness']['per_state'].'';