I'm stuck on the counter for the child term.
See Image:
What did i try?
Make use of:
- wp_defer_term_counting(true);
- wp_update_term_count();
Both of this functions didn't work inside my code.
Making use of wp_insert_term();
Does someone has a solution to update the child term count when saving your post?