Skip to content

Instantly share code, notes, and snippets.

@SeanTOSCD
Created July 19, 2017 04:11
Show Gist options
  • Save SeanTOSCD/87e020a566a7751c8a5a519861d37ee6 to your computer and use it in GitHub Desktop.
Save SeanTOSCD/87e020a566a7751c8a5a519861d37ee6 to your computer and use it in GitHub Desktop.
file
<?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