You can specify a language code in the membership PayPal payment button (created by this plugin) using the following filter hook.
Add the following code to your theme’s functions.php (or any other custom plugin) file.
add_filter('swpm_pp_payment_form_additional_fields', 'swpm_my_additional_fields');
function swpm_my_additional_fields($output){
//Set the PayPal checkout page's language to French
$output .= '<input type="hidden" name="lc" value="FR" />';
return $output;
}
You can find a list of supported country/region code on this page.
The following 5-character codes are also supported for languages in specific countries (so you can use them as the value of the “lc” field):
- da_DK – Danish (for Denmark only)
- he_IL – Hebrew (all)
- id_ID – Indonesian (for Indonesia only)
- ja_JP – Japanese (for Japan only)
- no_NO – Norwegian (for Norway only)
- pt_BR – Brazilian Portuguese (for Portugal and Brazil only)
- ru_RU – Russian (for Lithuania, Latvia, and Ukraine only)
- sv_SE – Swedish (for Sweden only)
- th_TH – Thai (for Thailand only)
- tr_TR – Turkish (for Turkey only)
- zh_CN – Simplified Chinese (for China only)
- zh_HK – Traditional Chinese (for Hong Kong only)
- zh_TW – Traditional Chinese (for Taiwan only)