Anybody got any solutions for this…
I’m building an app where I have two heirchical custom taxnomies acting as custom categories. So i’ve got cat1 and cat2 taxonomy.
What I want to do is copy a term, along with its children from cat1 to cat2. Maybe something like:
set_term_taxonomy($term_id, array("cat1, "cat2"));
where the same term, along with its children, could be in more than one taxonomy. The reason for 2 taxonomies is that they are 2 different shop inventories.
Had to write a method to do it. Here is the method… hope it helps someone else 😉
syntax: