Support

Home Forums Event Espresso Premium Prevent Customer from adding a new state

Prevent Customer from adding a new state

Posted: May 3, 2022 at 6:13 am

Viewing 1 reply thread


pfyffe1

May 3, 2022 at 6:13 am

How do I prevent a customer from adding a new state?
How do I delete the state that the customer added?


Tony

  • Support Staff

May 3, 2022 at 11:02 am

Hi there,

How do I prevent a customer from adding a new state?

You can add this snippet to your site:

https://gist.github.com/joshfeck/7bf112ee2dc9e49f7e3f14b8c2b59611

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

How do I delete the state that the customer added?

Currently, you can’t as it is linked to the registration but you can stop it from appearing on the front end.

Go to Event Espresso -> General Settings -> Countries (tab).

Select the country this state was added to in the dropdown and wait a second for the states to load.

For each state there is a ‘State Appears in Dropdown Select Lists’ Yes/No radio button, select ‘No’ on the state in question and save the settings to remove it from view.

Viewing 1 reply thread

The support post ‘Prevent Customer from adding a new state’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso