wp_create_category() adds new categories to the ‘content’ taxonomy associated with the post type…

Simple question really neither wp_create_category() or wp_insert_category() allows configuration for taxonomy type… so how can I can do it?

1 Answer
1

For custom taxonomies you should use wp_insert_term()

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *