bedava hesaplar nulled scripts mod apk indir youtube mp3 dönüştürücü

WPML translate & betheme

Hello

I followed your instructions

Now I only have muffin builder in my post but the translation is not working properly :


original :

https://www.breatharianworld.com/alekseev-egor/

translate english :


yet I have added in the function file betheme : 

add_filter( 'wpml_decode_custom_field', 'wpmld_compsupp_5901_decode', 10, 2 );

function wpmld_compsupp_5901_decode( $custom_field_val, $custom_field_name ) {

  if ( $custom_field_name === 'mfn-page-items' ) {

   $custom_field_val = maybe_unserialize( base64_decode($custom_field_val) );

  }

  return $custom_field_val;

}

add_filter( 'wpml_encode_custom_field', 'wpmld_compsupp_5901_encode', 10, 2 );

function wpmld_compsupp_5901_encode( $custom_field_val, $custom_field_name ) {

  if ( $custom_field_name === 'mfn-page-items' ) {

    $custom_field_val = base64_encode( serialize($custom_field_val) );

  }

  return $custom_field_val;

}



thank you

Marie

Comments

Sign In or Register to comment.
bedava hesaplar nulled scripts mod apk indir youtube mp3 dönüştürücü