plugin development – Remove All Taxonomies from Post On Update

Question

I’ve got a custom post type set up with custom taxonomies. When a user updates a post I need a way to check to see if there are any location taxonomies applied and if so then remove them.

I’ve managed to sort the updating part out. So when post is saved it adds the correct Location taxonomy. I’m using two custom taxonomies on the custom post type too. Locations and Industry. So I need to only check the Location taxonomy and remove any that have been set for that specific post while leaving Industry alone.

Any help would be greatly appreciated. I’ve checked the WP docs site but found I was getting in a muddle with terms, taxonomy etc.

0
Daniel Worthington 5 months 2022-07-06T17:50:50-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse