Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created February 17, 2015 18:08
Show Gist options
  • Select an option

  • Save joshfeck/d452eb64caf380d6dc72 to your computer and use it in GitHub Desktop.

Select an option

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