Created
February 17, 2015 18:08
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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