I have been searching and found a function that will display all WooCommerce product categories, but I am looking for a function that will retrieve single product category name by giving product category ID. Raw product category name, no url, no thumbnail, nothing.
I need to use it in my template file.
For instance: Category Name for 'Bags' has id '15'
I need something like this:
showCategoryName(15);
RESULT: Bags
Thanks