Created
July 19, 2017 04:11
-
-
Save SeanTOSCD/87e020a566a7751c8a5a519861d37ee6 to your computer and use it in GitHub Desktop.
file
This file contains 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 // DO NOT COPY THIS LINE | |
/* | |
* This snippet forces the billing address to always be collected at checkout | |
*/ | |
function pw_edd_force_billing_address() { | |
if( ! did_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields' ) ) { | |
edd_default_cc_address_fields(); | |
} | |
} | |
add_action( 'edd_purchase_form_after_cc_form', 'pw_edd_force_billing_address' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment