get term id
snippet in php

get term id

user8138

get_queried_object()->term_id;