Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created February 17, 2015 18:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/d452eb64caf380d6dc72 to your computer and use it in GitHub Desktop.
Save joshfeck/d452eb64caf380d6dc72 to your computer and use it in GitHub Desktop.
Filter to change the State and Country fields to text fields on the payment billing forms. Requires Event Espresso 4.6.7.p or greater.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_filter( 'FHEE__EE_Billing_Attendee_Info_Form__state_field', 'billing_locale_text_field', 10, 1 );
add_filter( 'FHEE__EE_Billing_Attendee_Info_Form__country_field', 'billing_locale_text_field', 10, 1 );
function billing_locale_text_field( $original_field ) {
return new EE_Text_Input( array( 'required' => true, 'html_class' => 'ee-billing-qstn'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment