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
if ( !function_exists( 'get_softsdev_wc_mc_setting' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-categories-mailchimp-groups/woocommerce-mailchimp-free.php'; } // The setting. $setting = ''; // NOTICE! Understand what this does before running. $result = get_softsdev_wc_mc_setting($setting);
Defined (1)
The function is defined in the following location(s).
- /woocommerce-mailchimp-free.php
- function get_softsdev_wc_mc_setting( $setting = '' ) {
- if( !$setting )
- $setting = get_option('softsdev_wc_mc_full_setting');
- if( !$setting )
- return array();
- if( $setting['list_mgroup_id'] )
- list($setting['list_id'], $setting['mgroup_id']) = explode(':', $setting['list_mgroup_id'] );
- else{
- $setting['list_id'] = $setting['mgroup_id'] = '';
- }
- return $setting;
- }