Last active
August 29, 2015 14:05
-
-
Save SeanChDavis/ce740c542ab99274f877 to your computer and use it in GitHub Desktop.
EDD Edit Required Fields
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 // DON'T COPY THIS LINE | |
| /* | |
| * Remove Billing State from required list | |
| */ | |
| function custom_edd_purchase_form_required_fields( $required_fields ) { | |
| unset( $required_fields['card_state'] ); | |
| return $required_fields; | |
| } | |
| add_filter( 'edd_purchase_form_required_fields', 'custom_edd_purchase_form_required_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment