Skip Navigation

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 Minesh 7 years ago.

Assigned support staff: Minesh.

Author Posts
December 3, 2014 at 10:54 am #522216


I am trying to: Exclude a plugin for one language that adds some fields for italian version of site in checkout page. I want to exclude this plugin for english checkout page version.
I directly modified plugin code adding this:

$settings = get_option( 'wcbcf_settings' );
//WPML check
if( ICL_LANGUAGE_CODE != 'it_IT' ) return;

But it doesn't work.
Could you help me, please?
Thanks and regards.

I visited this URL:

I expected to see:

Instead, I got:

December 3, 2014 at 11:31 am #522260


Hello and thank you for contacting WPML support!!

Unfortunately as per our support policy we do not support such custom edits.

If you need custom programming work for your site, we recommend contacting one of our certified partners.

Though you can try next solution if it works for you. Replace language code as 'it'.

if( ICL_LANGUAGE_CODE != 'it' ) return; 

The topic ‘[Closed] Exclude a plugin for one language’ is closed to new replies.