I have a custom post type with a custom taxonomy.
When the custom taxonomy is set to "bar", I want to disable comments with:
wp_update_post(array( 'ID' => $post->ID, 'comment_status' => "closed" ));
I think this function triggers the save/update hooks, so I can't trigger this function on those hooks (e.g. save_post_custom_post_type) or it'll be an infinite loop.
I've looked for a hook like
updated_post_meta that applies on taxonomy/terms only but no luck.