Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created October 10, 2014 17:54
Show Gist options
  • Save pippinsplugins/3c1fe20e6abb04a2e85d to your computer and use it in GitHub Desktop.
Save pippinsplugins/3c1fe20e6abb04a2e85d to your computer and use it in GitHub Desktop.
Make the first name not required during EDD checkout
<?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' );
@ooobe
Copy link

ooobe commented Feb 11, 2017

How to hide this form if the user already registered / subscribed? I'm not sure if I'm going to get any problems afterward!

@podi123
Copy link

podi123 commented Jul 1, 2017

Hi.
I use EDD for give free crypteds links …
so, is there a fast solution for Hide or remove Personal informations from checkout ?

My products are free and i dont need users Personal informations.
many of them dont want enter those informations and leave… so
Hide or remove Personal informations from checkout ?

Can you make a little plugin please ?
PS:
I dont want to use easy-digital-downloads-free-link.1.0.5 plugin because need hosting external file and no crypted link

Copy link

ghost commented Dec 29, 2018

Thanks a lot for this code, but it's not working for user_login field. What can I do for unset that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment