Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created January 24, 2017 19:10
Show Gist options
  • Save joshfeck/7bf112ee2dc9e49f7e3f14b8c2b59611 to your computer and use it in GitHub Desktop.
Save joshfeck/7bf112ee2dc9e49f7e3f14b8c2b59611 to your computer and use it in GitHub Desktop.
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