Title: Remove home_url language
Last modified: January 19, 2022

---

# Remove home_url language

 *  Resolved [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/remove-home_url-language/)
 * 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)

 *  [vrasak](https://wordpress.org/support/users/vrasak/)
 * (@vrasak)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/remove-home_url-language/#post-15282690)
 * 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](https://wordpress.org/support/users/alexcozmoslabs/)
 * (@alexcozmoslabs)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/remove-home_url-language/#post-15310558)
 * 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.
 *  [vrasak](https://wordpress.org/support/users/vrasak/)
 * (@vrasak)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/remove-home_url-language/#post-15335852)
 * 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](https://wordpress.org/support/users/alexcozmoslabs/)
 * (@alexcozmoslabs)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/remove-home_url-language/#post-15394589)
 * 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.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/remove-home_url-language/#post-15394589)
 * Status: resolved