Support

Home Forums Event Espresso Premium Blocking new "state/province" in registration

Blocking new "state/province" in registration

Posted: July 18, 2016 at 8:13 am

Viewing 8 reply threads


Aurelio

July 18, 2016 at 8:13 am

We added all states of our Country.
Makes no sense the option for registrants add “new” states. Only select yours.
How to remove this?


Josh

  • Support Staff

July 18, 2016 at 10:44 am

You might find that it makes sense to have the add new state form in case someone has an address that’s outside of your country.

In any case, you can remove the form by adding the following code to your site:

add_action( 'init', 'my_remove_add_state_form' );
function my_remove_add_state_form() {
    remove_filter( 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___question_group_reg_form__question_group_reg_form', array( 'EED_Add_New_State', 'display_add_new_state_micro_form' ), 1 );
    remove_filter( 'FHEE__EE_SPCO_Reg_Step_Payment_Options___get_billing_form_for_payment_method__billing_form', array( 'EED_Add_New_State', 'display_add_new_state_micro_form' ), 1);
} 

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


Aurelio

July 18, 2016 at 11:32 am

SOLVED.
I think that it would be a option for EE admin in configuration.
In Europe, this can be common, because the countries are smaller than Brazil.


Josh

  • Support Staff

July 18, 2016 at 11:56 am

Hi Aurelio,

Thanks for suggesting an option, but we’re going to pass on adding an option for this. As you might imagine there would be hundreds, possibly thousands of options to go through if each aspect of Event Espresso had an option. See also:

https://wordpress.org/about/philosophy/#decisions
https://tommcfarlin.com/wordpress-philosophy-decisions-not-options/


Aurelio

July 18, 2016 at 12:09 pm

Thanks.
I suggest together another “option” named “State Appears in Dropdown Select Lists” 😉


Josh

  • Support Staff

July 18, 2016 at 12:15 pm

That’s already an option.


Aurelio

July 19, 2016 at 6:01 am

I known that.
I suggest my “option” near existing “State Appears in Dropdown Select Lists”


Josh

  • Support Staff

July 19, 2016 at 9:11 am

Thanks for the suggestion, but we’ll pass on adding this.


Aurelio

July 19, 2016 at 11:07 am

Thanks

Viewing 8 reply threads

The support post ‘Blocking new "state/province" in registration’ 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