Wordpress - get_terms() returns “invalid taxonomy” (this is not a hook issue)
问题 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