Skip to content

Instantly share code, notes, and snippets.

@madeincosmos
Created August 19, 2019 13:04
Show Gist options
  • Save madeincosmos/93a65a39a90e14c9c3076589d2ee1aac to your computer and use it in GitHub Desktop.
Save madeincosmos/93a65a39a90e14c9c3076589d2ee1aac to your computer and use it in GitHub Desktop.
Send billing address to PayPal even when shipping is disabled
/* Send billing address to PayPal even when shipping is disabled (2278024-zen) */
add_filter( 'woocommerce_paypal_args', 'force_send_billing_address_to_paypal', 10 );
function force_send_billing_address_to_paypal ( $args ) {
$args[ 'no_shipping' ] = 0;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment