Created
October 10, 2014 17:54
-
-
Save pippinsplugins/3c1fe20e6abb04a2e85d to your computer and use it in GitHub Desktop.
Make the first name not required during EDD 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_purchase_form_required_fields( $required_fields ) { | |
unset( $required_fields['edd_first'] ); | |
return $required_fields; | |
} | |
add_filter( 'edd_purchase_form_required_fields', 'pw_edd_purchase_form_required_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot for this code, but it's not working for user_login field. What can I do for unset that?