Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    you can try to hook into em_get_countries filter.

    (should be added in your theme functions.php)

    e.g.

    function em_my_mod($em_countries_array){
     /*START*/
     //add snippet here
     /*END*/
     return $em_countries_array;
    }
    add_filter('em_get_countries','em_my_mod',10,1);
    
    /*please see em-functions.php at around line 142 to see how it works*/

    however will let Marcus know about this.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Hi Danyala,

    Whilst I know it may annoy many Catalans and Basques by saying this :), I don’t think they are to be in the countries filter by default. It’d be considered a region or state of Spain.

    Generally, if it’s here, then it’s a country we’ll add – http://countrycode.org/

    As angelonwl mentioned though, the code would work:

    function em_my_mod($em_countries_array){
     $em_countries_array['CT'] = 'Catalunya';
     $em_countries_array['BQ'] = 'Basque';
     return $em_countries_array;
    }
    add_filter('em_get_countries','em_my_mod',10,1);

    make sure CT and BQ aren’t already taken!

    Thread Starter Danyala Shiva

    (@danyala-shiva)

    Hi Marcus,

    Thanks a lot !
    It worked 🙂

    Kind regards,
    Danyala

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Request to add Basque Country and Catalunya to country list.’ is closed to new replies.