Custom taxonomy
-
I used ToolSet to prepare custom taxonomy and then I want to change default taxonomy “category” to “media-category”, but it does not work! {I made var_dump on apply filter in “wpmediacategory_init” method.) I used your code and added it to functions.php in theme. Please explain me more, where is a best place to put this code?
add_filter( ‘wpmediacategory_taxonomy’, function(){ return ‘category_media’; } ); //requires PHP 5.3 or newer
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom taxonomy’ is closed to new replies.