Support

Home Forums Event Espresso Premium Default Country

Default Country

Posted: May 25, 2015 at 12:18 pm

Viewing 3 reply threads


Chris Stambaugh

May 25, 2015 at 12:18 pm

Hi,

Not sure when this changed, but I remember when I used to manually add registrants, the default country was Canada (which I liked). Now it is blank. How can I make this be the way it used to be?

Thanks,

Paul


Dean

May 26, 2015 at 1:47 am

Hi,

It was changed recent’y as we had a number of users who had difficulty where clients would ignore a pre-filled select option.

Adding this following to a site specific plugin will remove the blank option:

function remove_blank_country_select($country_options, $this) {
$country_options = array_filter($country_options);
return $country_options;
}
add_filter('FHEE__EE_Country_Select_Input____construct__country_options', 'remove_blank_country_select', 10, 2);


Chris Stambaugh

May 26, 2015 at 10:33 am

Works great! Thanks.


Dean

May 27, 2015 at 1:53 am

You’re welcome! I’ll mark this as resolved. If you need to continue this discussion, please start a new thread and link to this one.

Thanks!

Viewing 3 reply threads

The support post ‘Default Country’ 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.

Event Espresso