get_softsdev_wc_mc_setting

The Woocommerce categories Mailchimp groups get softsdev wc mc setting function.

Description

get_softsdev_wc_mc_setting( (string) $setting = '' ); 

Parameters (1)

0. $setting — Optional. (string) => ''
The setting.

Usage

  1. if ( !function_exists( 'get_softsdev_wc_mc_setting' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-categories-mailchimp-groups/woocommerce-mailchimp-free.php'; 
  3.  
  4. // The setting. 
  5. $setting = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_softsdev_wc_mc_setting($setting); 
  9.  

Defined (1)

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

/woocommerce-mailchimp-free.php  
  1. function get_softsdev_wc_mc_setting( $setting = '' ) { 
  2. if( !$setting ) 
  3. $setting = get_option('softsdev_wc_mc_full_setting'); 
  4. if( !$setting ) 
  5. return array(); 
  6. if( $setting['list_mgroup_id'] ) 
  7. list($setting['list_id'], $setting['mgroup_id']) = explode(':', $setting['list_mgroup_id'] ); 
  8. else{ 
  9. $setting['list_id'] = $setting['mgroup_id'] = ''; 
  10. return $setting;