Skip to content

Instantly share code, notes, and snippets.

@SeanTOSCD
Created July 4, 2017 18:11
Show Gist options
  • Save SeanTOSCD/243504eb08c017e87f3a04a2b8853569 to your computer and use it in GitHub Desktop.
Save SeanTOSCD/243504eb08c017e87f3a04a2b8853569 to your computer and use it in GitHub Desktop.
EDD PayPal Locale Code
<?php // DO NOT COPY THIS LINE
function sd_paypal_locale_code( $paypal_args ) {
// replace fr_XC with the Locale Code you need
// https://developer.paypal.com/docs/classic/api/locale_codes/#supported-locale-codes
$paypal_args['lc'] = 'fr_XC';
return $paypal_args;
}
add_filter( 'edd_paypal_redirect_args', 'sd_paypal_locale_code' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment