/** * Do the following plugin setup steps here * * Internationalization * Resource (JS & CSS) enqueuing * * @return void */ function mailchimpSF_plugin_init() { // Internationalize the plugin $textdomain = 'mailchimp_i18n'; $locale = apply_filters('plugin_locale', get_locale(), $textdomain); load_textdomain('mailchimp_i18n', MCSF_LANG_DIR . $textdomain . '-' . $locale . '.mo'); // Check for mc_api_key or sopresto key and continue if neither mailchimpSF_migrate_sopresto(); // Bring in our appropriate JS and CSS resources mailchimpSF_load_resources(); }
/** * Do the following plugin setup steps here * * Internationalization * Resource (JS & CSS) enqueuing * * @return void */ function mailchimpSF_plugin_init() { // Internationalize the plugin $textdomain = 'mailchimp_i18n'; $locale = apply_filters('plugin_locale', get_locale(), $textdomain); load_textdomain('mailchimp_i18n', MCSF_LANG_DIR . $textdomain . '-' . $locale . '.mo'); // Check for mc_api_key or sopresto key and continue if neither mailchimpSF_migrate_sopresto(); if (get_option('mc_list_id') && get_option('mc_merge_field_migrate') != true && mailchimpSF_get_api() !== false) { mailchimpSF_update_merge_fields(get_option('mc_list_id')); } // Bring in our appropriate JS and CSS resources mailchimpSF_load_resources(); }