public function update_mailpoet() { $result = 0; $list = ESSBSocialFollowersCounterHelper::get_option('mailpoet_id'); if (!empty($list)) { if ($list == 'all') { $result = ESSBSocialFollowersCounterHelper::mailpoet_total_subscribers(); } else { $result = ESSBSocialFollowersCounterHelper::mailpoet_get_list_users($list); } } return $result; }