irislines web design
irislines web design

Default Country

Wanting to help out U.S. based users of The Events Calendar, I tracked down a place to set the default country.


I changed this:

public function country() {
    return array( '','');

to this:

public function country() {
    return array( '','United States');

United States is preselected, and a selection of states is generated. All other countries are still available, should they be needed.

It appears other defaults could be set as well, but I didn’t try it.

This file will need to be re-modified when updates are applied, as it is not in a location that can be accomplished with a template override.

IrisLines LLC
101 Washington Street
Brattleboro, VT 05301

802 257 7391