Removing home_url filter doesn't work
-
Hello.
The current situation is: blog is in one main language and there is a special category in another. Translation works but we don’t need to the language slug on the rest of the page. So all the menus are the same, except the linked logo.
It redirects to the second language if in the desired category (normal behaviour). After searching the forums, I found your hint to use the following code:
function remove_home_filter() { global $polylang; if ($polylang) remove_filter('home_url', array(&$polylang, 'home_url')); } add_action('wp', 'remove_home_filter', 99);
but there is no effect on the page.
Any advice/help?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Removing home_url filter doesn't work’ is closed to new replies.