Title: Remove countries
Last modified: August 24, 2016

---

# Remove countries

 *  Resolved [playonmonkeys](https://wordpress.org/support/users/playonmonkeys/)
 * (@playonmonkeys)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/remove-countries/)
 * What file do I need to modify to remove the countries I do not need to be shown
   I only need to show certain countries in the country list , also how can I I 
   edit the way the visual editor show on the submission form I want to remove the
   add media button
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/remove-countries/#post-5983859)
 * If you can code or have someone at hand, you’d want to hook into the WP filter
   called – em_get_countries – which is called in the file events-manager/em-functions.
   php
 *  Thread Starter [playonmonkeys](https://wordpress.org/support/users/playonmonkeys/)
 * (@playonmonkeys)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/remove-countries/#post-5983891)
 * I tried using this code with no success
 * function customcountries(){
    $em_countries_custom[‘US’] = ‘United States’; unset(
   $em_countries_array); return $em_countries_new; } add_filter(’em_get_countries’,’
   customcountries’);
 *  Thread Starter [playonmonkeys](https://wordpress.org/support/users/playonmonkeys/)
 * (@playonmonkeys)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/remove-countries/#post-5983920)
 * I am also having problem with templates not working I removed the region stuff
   from location.php and put it in this directory /wp-content/themes/BodyRitesv2/
   plugins/events-manager/templates/templates
 * and it does not work any idea on how to fix this
 *  [jtwash](https://wordpress.org/support/users/jtwash/)
 * (@jtwash)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/remove-countries/#post-5984056)
 * Looking at playonmonkeys’ post above, but being a novice, does this mean I need
   to download this plugin? I currently have many countries showing when a customer
   places an order, and I want to limit those countries. Please be extremely specific
   about what to do as I cannot find a plugins/events-manager in my site at present.
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/remove-countries/#post-5984057)
 * yes you need to download EM first 🙂 – [http://wp-events-plugin.com/documentation/getting-started/](http://wp-events-plugin.com/documentation/getting-started/)
 *  [jtwash](https://wordpress.org/support/users/jtwash/)
 * (@jtwash)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-countries/#post-5984064)
 * Thanks for answering. My web designer got it figured out! Apparently this is 
   the wrong plug in for my site.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Remove countries’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [jtwash](https://wordpress.org/support/users/jtwash/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/remove-countries/#post-5984064)
 * Status: resolved