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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Remove home_url language’ is closed to new replies.