I have multiple customs post types:
CPT1 = "bike",
CPT2 = "car"
They share a common custom taxonomy "colors" (with terms : "blue", "red" ).
They also have their own taxonomy with terms like : "blue_bike", "red_bike" ..
I'm searching how to auto update the post taxonomy with the custom taxonomy.
For example : If i only select the custom taxonomy term "blue" in the Custom Post Type "Bike".
Is it possible when i save the post, it will automatically update the post with the term "blue_bike" ?
And if it's possible how to do that ?
I'm trying for the past couple hours with the function
wp_set_object_terms, with no result (my php skills are not so good)