WordPress to get all terms list from custom taxonomy

You can get all term list from your custom texonomy. you can return result as a object.