This is the line 351
$lists = $mc4->get_cached_lists();
/**
* [esperto_get_mc_lists description]
*/
function esperto_get_mc_lists( $assos = true ) {
if ( ! function_exists( ‘mc4wp’ ) ) {
return array();
}
if ( ! class_exists( ‘MC4WP_Mailchimp’ ) ) {
require_once MC4WP_PLUGIN_DIR . ‘includes/class-mailchimp.php’;
}
$mc4 = new MC4WP_Mailchimp();
$lists = $mc4->get_cached_lists();
if ( $assos ) {
$return = array();
foreach( $lists as $list ) {
$return[$list->id] = $list->name;
}
return $return;
}
return $lists;
}
/**
-
This reply was modified 4 years, 8 months ago by asseebosmani.
-
This reply was modified 4 years, 8 months ago by asseebosmani.