Wordpress 3.8.1
Polylang 1.4.1
I would like to disable translation of categories and make categories available for every language.
So far I've understood that I need to use the pll_get_taxonomies filter, but I'm having some trouble getting it to work. I've added the following code in my functions.php:
add_filter('pll_get_taxonomies', 'remove_taxonomies');
function remove_taxonomies($taxonomies) {
unset($taxonomies['Current']);
return $taxonomies;
}
This doesn't work, but think it might be because the function is fired too late, since I read this in the readme:
* 'pll_get_post_types' and 'pll_get_taxonomies' filters must be added *before* 'after_setup_theme' is fired
How can I make sure it's fired before "after_setup_theme"? Would be great to have a working example, as I think I'm not the only one curious how to do this :)
Hope someone out there is able to help me!
All the best,
Asger
P.S. I've read the post with posting guidelines, but thought this was a more general question, so I omitted the usual contextual information. Hope that is OK!