Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove the "add a new state/province" form from the Event Espresso registration and billing forms
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_action( 'wp_loaded', 'my_remove_new_state_form' );
function my_remove_new_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, 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, 1 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.