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
July 18, 2016 at 10:44 am
Add New Note to this Reply
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
Add New Note to this Reply
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
July 18, 2016 at 11:56 am
Add New Note to this Reply
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
Add New Note to this Reply
Thanks.
I suggest together another “option” named “State Appears in Dropdown Select Lists” 😉
Josh
July 18, 2016 at 12:15 pm
Add New Note to this Reply
That’s already an option.
Aurelio
July 19, 2016 at 6:01 am
Add New Note to this Reply
I known that.
I suggest my “option” near existing “State Appears in Dropdown Select Lists”
Josh
July 19, 2016 at 9:11 am
Add New Note to this Reply
Thanks for the suggestion, but we’ll pass on adding this.
Aurelio
July 19, 2016 at 11:07 am
Add New Note to this Reply
Thanks