• Resolved edward_plainview

    (@edward_plainview)


    Is there a way to remove your filter that breaks the home_url() command? I tried the following:

    $tp = TRP_Translate_Press::get_trp_instance();
    $uc = $tp->get_component( ‘url_converter’ );
    remove_filter( ‘home_url’, $uc, ‘add_language_to_home_url’, 1, 4 );
    echo( home_url() );

    But the url still returns with the /lang/ part at the end.

Viewing 4 replies - 1 through 4 (of 4 total)
  • It seems that this question did not get an answer easily, may be it is a hard one.

    BTW, Is there any work around? for example get only /lang/ part then extract the original.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Our plugin was designed to work with subdirectories for additional language.
    Therefore, we don’t have support for eliminating this, except for the default language (TP Settings –> General tab –> Use subdirectory for default language option).

    Let me know if I misunderstood something in your request.

    Hi,
    I installed your plugin “TranslatePress” and have two language EN (English), TH (Thai) and I’m happy to have sub-directory represent the chosen language.

    domain.com/EN/..
    domain.com/TH/..

    However, this configure conflict with “MyCryptoCheckout” plugin.

    The workaround for me right now is to select “NO” to Use sub-directory for default language option. This allow MyCryptoCheckout to run in English only.

    but it is crippled in Thai language. because of it has /TH/ after domain name.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    It is by design that additional languages have the language subdirectory in the URL. It will not work otherwise.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove home_url language’ is closed to new replies.