On my local machine it works fine, but on the live server, when I run
get_terms('taxonomy' => 'any_taxonomy');
it returns a list of terms, but if I add any parameter to it like:
get_terms('taxonomy' => 'any_taxonomy','hide_empty' => false);
Then it returns "invalid taxonomy". The issue is not that the taxonomy is not registerd get_taxonomies() before it, it shows that all the taxonomies are registered. If I do this:
get_terms('taxonomy' => 'category','hide_empty' => false);
The same problem is there, so its not just custom taxonomies.
Any idea what could be causing this issue?
Can anyone suggest a way to diagnose this?