Created
January 28, 2014 19:14
-
-
Save pippinsplugins/8674199 to your computer and use it in GitHub Desktop.
Removes the state field from the required fields on checkout
This file contains hidden or 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 | |
| function pw_edd_remove_state_from_required_fields( $fields ) { | |
| if( array_key_exists( 'card_state', $fields ) ) { | |
| unset( $fields['card_state'] ); | |
| } | |
| return $fields; | |
| } | |
| add_filter( 'edd_purchase_form_required_fields', 'pw_edd_remove_state_from_required_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment