fetch_lists() public method

public fetch_lists ( ) : array
return array
 /**
  * Renew MailChimp lists cache
  */
 public function renew_lists_cache()
 {
     // try getting new lists to fill cache again
     $lists = $this->mailchimp->fetch_lists();
     if (!empty($lists)) {
         $this->messages->flash(__('Success! The cached configuration for your MailChimp lists has been renewed.', 'mailchimp-for-wp'));
     }
 }
 /**
  * Empty lists cache & fetch lists again.
  */
 public function refresh_mailchimp_lists()
 {
     if (!$this->tools->is_user_authorized()) {
         wp_send_json(false);
     }
     $mailchimp = new MC4WP_MailChimp();
     $lists = $mailchimp->fetch_lists();
     $success = !empty($lists);
     wp_send_json($success);
 }
/**
 * Refreshes MailChimp lists. This can take a while if the connected MailChimp account has many lists.
 *
 * @return void
 */
function mc4wp_refresh_mailchimp_lists()
{
    $mailchimp = new MC4WP_MailChimp();
    $mailchimp->fetch_lists();
}