Get current term

PHP
global $wp_query;
$term = $wp_query->get_queried_object();