Deleting Custom Taxonomy Term only increments tag_ID
I’m not sure why you’re seeing the ID increment, however one problem is that your function call to get_terms() needs to include an array of taxonomy names as the first parameter. In your case, you just need to include an array with a single taxonomy name. For example: $existing_terms = get_terms(array(‘custom_taxonomy’), array( ‘hide_empty’ => false … Read more