Tracking the name of a custom taxonomy

For a site I need to show related posts for a custom taxonomy. Because another person build this site and also created a custom taxonomy, and this code can't be found in a proper file like functions.php or a plugin, I need to track this name so I can use it for other code solutions.

For clarity; If I create a custom taxonomy, a part of the code is

register_taxonomy('**SUBJECT TO TRACK**',array('customposttype'), array(

I need to track the part of 'SUBJECT TO TRACK'. Is there any function I could use to show this on a page? probably the answer is simple, but i can't find it anywhere...

Topic advanced-taxonomy-queries register-taxonomy taxonomy custom-taxonomy Wordpress

Category Web


After messing with some code I found a solution: just use this code and a lot if information will be showed. Within all this data you search for the categorie that is inside your taxonomy and you'll see the taxonomy-> name.

// Show all data of all taxonomies
function print_tax_data(){
    $data = get_terms();
    print_r($data);
}
add_shortcode('tax_data', 'print_tax_data');

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.