• Resolved typogretel

    (@typogretel)


    Hi guys, I want to use the Events Calendar for the events of an NGO website in Palestine. But Palestine does not exists in the dropdown list of countries. How can I add it please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • djbramer

    (@djbramer)

    Hi there!

    You can add a new country by adding a filter to the plugin. Below is a code snippet that should do the trick!

    add_filter( ‘tribe_countries’, function( $countries ) {
    $countries[‘PS’] = ‘Palestine’;
    });

    Dan

    djbramer

    (@djbramer)

    Hello again-

    My apologies. A return statement would also be needed.

    add_filter( ‘tribe_countries’, function( $countries ) {
    $countries[‘PS’] = ‘Palestine’;
    return $countries;
    });

    Dan

    Thread Starter typogretel

    (@typogretel)

    Thank you very much – I will try that!

    Plugin Contributor Andras Guseo

    (@aguseo)

    Hey, I hope that got it working. Since there hasn’t been any movement here for about 2 weeks I’m going to mark this as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Country: Palestine is missing’ is closed to new replies.