Home Forums Event Espresso Premium Enabling ALL COUNTRIES in settings

Enabling ALL COUNTRIES in settings

Posted: November 2, 2018 at 2:54 pm

lisa burgess

November 2, 2018 at 2:54 pm


I read through posts several years ago about enabling all countries from the settings and at that time it had to be done manually, or could be done through phpmyadmin. (2014) (2016)

Has this been updated for 2018? My client offers training classes that people from all over the globe register and attend. I need to have all countries available – not just US and Canada.

Please advise. I am using EE4 4.9.67.p
thank you,


  • Support Staff

November 2, 2018 at 3:23 pm

Hi Lisa,

You can install these country packs (they’re one-time-use plugins that add the location data to your site)

Then, if there’s a registrant that’s from a country that’s not in the list, they have the ability to add their Country because the registration form provides the option to add a Country & State/Province.

lisa burgess

November 2, 2018 at 3:41 pm

Hi Josh,
So to be clear: I need to download and install EACH of these 25+ country packs individually, activate them, select each of these countries (individually) from the settings page and click “save country details”. Once I finish doing that, then i can deactivate and delete each of the plugins?

Am I missing anything? or have any of this wrong?


  • Support Staff

November 2, 2018 at 6:35 pm

You don’t need to select the countries or click “save country details” because the plugins do all the option setting for you.

I can advise to install this plugin first, then the states can be added via the country packs. You can deactivate & delete the state pack right after activation.

lisa burgess

November 5, 2018 at 6:54 am

Hi Josh,
Thanks – I installed the plugin that enables all the countries and then the packs for states/provinces of the countries where most of our registrants come from. That was a huge help!

Is there a way to have United States display as the very first option in the country dropdown menu, since 80% of our registrants are US-based?



  • Support Staff

November 5, 2018 at 11:22 am

Hi Lisa,

Yes there is a way. You add this code to your site:

add_action('wp_enqueue_scripts', 'my_change_default_ee_country_option', 20);
function my_change_default_ee_country_option(){
    $custom_js = 'jQuery(document).ready(function($){';
    $custom_js .= '$(".ee-reg-qstn-country").val("US");';
    $custom_js .= '});';
    wp_add_inline_script('ee_form_section_validation', $custom_js);

You can add the above to a functions plugin or, if applicable, into your WordPress child theme’s functions.php file.

The support post ‘Enabling ALL COUNTRIES in settings’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 5 months, 2 weeks ago ago

Topic Tags



This topic is: not resolved
Do NOT follow this link or you will be banned from the site!