Created
May 13, 2015 13:30
-
-
Save mindctrl/f7506b46e1b77511529d to your computer and use it in GitHub Desktop.
Easy Digital Downloads - Remove billing details section on the checkout screen.
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
/** | |
* Removes the billing details section on the checkout screen. | |
*/ | |
function jp_disable_billing_details() { | |
remove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields' ); | |
} | |
add_action( 'init', 'jp_disable_billing_details' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For EU VAT, the only thing needed is State. So ZIP, city, Province are just getting in seller's way for conversion...
I'll test just with the State field to see what happens. The idea is to first unset the required and then hide with CSS.