plugin_name, array()); if (!isset($_GET['tab']) && isset($options['active_tab'])) { $active_tab = $options['active_tab']; } $show_sync_tab = isset($_GET['resync']) ? $_GET['resync'] === '1' : false;; $show_campaign_defaults = true; $has_valid_api_key = false; $allow_new_list = true; $clicked_sync_button = $is_mailchimp_post&& $active_tab == 'sync'; if (isset($options['mailchimp_api_key']) && $handler->hasValidApiKey()) { $has_valid_api_key = true; // if we don't have a valid api key we need to redirect back to the 'api_key' tab. if (($mailchimp_lists = $handler->getMailChimpLists()) && is_array($mailchimp_lists)) { $show_campaign_defaults = false; $allow_new_list = false; } // only display this button if the data is not syncing and we have a valid api key if ((bool) $this->getData('sync.started_at', false)) { $show_sync_tab = true; } } ?>

MailChimp Settings

plugin_name); do_settings_sections($this->plugin_name); include('tabs/notices.php'); } ?>

More Information