Skip to content

Instantly share code, notes, and snippets.

@kreamweb
Created September 13, 2018 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kreamweb/1333d6977e65fa8d8dcae34c99b3a3cf to your computer and use it in GitHub Desktop.
Save kreamweb/1333d6977e65fa8d8dcae34c99b3a3cf to your computer and use it in GitHub Desktop.
Change the Set Express Checkout Request parameters on YITH PayPal Express Checkout for WooCommerce
<?php
add_filter('yith_paypal_ec_set_express_checkout_request_parameters', 'yith_paypal_ec_set_express_checkout_request_parameters');
function yith_paypal_ec_set_express_checkout_request_parameters( $args ){
$args['NOSHIPPING'] = 2;
$args['ADDROVERRIDE'] = 1;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment