Support

Home Forums Event Espresso Premium A new State named "Nairobi (NBR)" was dynamically added from an Event Espresso Reply To: A new State named "Nairobi (NBR)" was dynamically added from an Event Espresso

Reply To: A new State named "Nairobi (NBR)" was dynamically added from an Event Espresso

Author Replies
Josh # Posted on May 17, 2018 at 8:49 am

Hi Joe,

Yes that message about the new state is because a user couldn’t find their state, so they used the option to add one.

You can remove the option to add a new state by adding the following code to your site:

add_action( 'template_redirect', 'my_remove_new_state_link' );
function my_remove_new_state_link() {
  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.

Do NOT follow this link or you will be banned from the site!