PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Get the term list ordered by hierarchy

Sometimes there are cases when its necessary to get taxonomies links of post ranked in the hierarchy. WordPress has the function to get posts custom taxonomies links:

But: you cant get it by hierarchy! I had such a task. And I want to describe my decision of this task.
I wrote a little class:


Using of this php class is simple:

Example:

This php class is for replace WordPress function get_the_term_list when it is important to get ordered by hierarchy taxonomies terms links of a post.

WOOBE - WooCommerce Bulk Editor and Products Manager Professional