This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 10 months, 3 weeks ago.

Assigned support staff: Bobby.

Author Posts
July 10, 2019 at 3:19 pm #4182069


i have 5 languages an in one (romanian) i have to hide 2 payment methods...

i tried this

function wpml_filter_gateways($gateways){
if(ICL_LANGUAGE_CODE == 'ro') //Checks if the selected language is French.
unset($gateways['paypal']); //"remove" paypal
unset($gateways['payment_method_bs_payone_sofort']); //"remove" sofort

return $gateways; //returns the other payment methods.

but im not sure if the payment id is right

July 10, 2019 at 9:53 pm #4184621


Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)


the paypal id seems to be correct, regarding the sofort one i am not sure as i am not familiar with this gateway, my recommendation would be to contact their support as they should be able to assist you by providing the correct payment id as this is related to their gateway

here you can find their documentation
-> hidden link

also please do note that we currently cannot support custom work within the forum therefore if further custom work is needed we recommend contacting one of our 3rd party contractors


The topic ‘[Closed] Hide Paypal and sofortbanking in onde langauge’ is closed to new replies.