Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_taxonomy [ WordPress Function ]

get_taxonomy ( $taxonomy )
Parameters:
  • (string) $taxonomy Name of taxonomy object to return
Uses:
Returns:
  • (object|bool) The Taxonomy Object or false if $taxonomy doesn't exist
Defined at:



Retrieves the taxonomy object of $taxonomy.

The get_taxonomy function will first check that the parameter string given is a taxonomy object and if it is, it will return it.

Source


<?php
function get_taxonomy$taxonomy ) {
    global 
$wp_taxonomies;

    if ( ! 
taxonomy_exists$taxonomy ) )
        return 
false;

    return 
$wp_taxonomies[$taxonomy];
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics