get current term id
snippet in php

get current term id

user9505

<?php $current_term = get_queried_object()->term_id; ?>

get term id

user7934

get_queried_object()->term_id;