Get Taxonomy Name From ID In WordPress

Need to get the taxonomy name from its ID in WordPress? All you may need is to use the get_term(); function in WordPress with your taxonomy ID.

Get taxonomy name from ID

To get the taxonomy name from its ID in WordPress, use the code below with your taxonomy ID.

$term = get_term(123); //Example term ID
$term->name; //gets term name