Title: Removing Certain Cities
Last modified: August 27, 2020

---

# Removing Certain Cities

 *  Resolved [temia5587](https://wordpress.org/support/users/temia5587/)
 * (@temia5587)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/removing-certain-cities/)
 * Hello,
 * I would like to find out how to limit the cities that come with the plugin.
 * For instance, I would like to just have ‘Lagos Island’ and ‘Lagos Mainland’ in
   the city dropdown so i can apply shipping methods/rates to those two alone. Then
   is there a way to only limit it to the State Lagos (within the country Nigeria?)
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremoving-certain-cities%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/removing-certain-cities/#post-13724032)
 * Hello [@temia5587](https://wordpress.org/support/users/temia5587/),
 * I just launched the latest release of **States, Cities, and Places for WooCommerce**.
   Since this release you can use two new filter hooks that allows you handling 
   both the list of States and Places:
    - `scpwoo_custom_states_xx`: It allows you to handle the States of a given country.
      The xx at the end must be replaced by the two-letter country code in lower
      case.
    - `scpwoo_custom_places_xx`: It allows you to handle the Places of a given country.
      The xx at the end must be replaced by the two-letter country code in lower
      case.
 * Please read the article [Using the filter hooks](https://github.com/chitezh/woocommerce_states_places/wiki/Using-the-filter-hooks)
   to learn How to use.
 * Best regards,
    Yordan.

Viewing 1 replies (of 1 total)

The topic ‘Removing Certain Cities’ is closed to new replies.

 * ![](https://ps.w.org/states-cities-and-places-for-woocommerce/assets/icon-256x256.
   png?rev=2277801)
 * [States, Cities, and Places for WooCommerce](https://wordpress.org/plugins/states-cities-and-places-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/states-cities-and-places-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/states-cities-and-places-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/states-cities-and-places-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/states-cities-and-places-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/states-cities-and-places-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/removing-certain-cities/#post-13724032)
 * Status: resolved