Is there a way to use the register_taxonomy function to create child taxonomies to a specific parent taxonomy in a hierarchical structure?

For example: Let's say I'm creating a theme for selling cars where users can activate it and it automatically creates a hierarchical taxonomy called "Make". Is there any way to have it automatically create a few different vehicle "make" taxonomies, say Toyota, Lexus, etc.?

1 Answer 1


I think you mean you want to create terms in your taxonomy?

Have a look at this answer for detecting when a theme is activated.

Then use wp_insert_term to insert the terms into your taxonomy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.