Switch language

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




taxonomy_exists [ WordPress Function ]

taxonomy_exists ( $taxonomy )
Parameters:
  • (string) $taxonomy Name of taxonomy object
Uses:
  • $wp_taxonomies
Returns:
  • (bool) Whether the taxonomy exists.
Defined at:



Checks that the taxonomy name exists.

Formerly is_taxonomy(), introduced in 2.3.0.

Source


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

    return isset( 
$wp_taxonomies[$taxonomy] );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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