Un motore di ricerca WordPress per sviluppatori e autori di temi



taxonomy_exists ›

Da3.0.0
Deprecaton/a
taxonomy_exists ( $taxonomy )
Parametri:
  • (string) $taxonomy Name of taxonomy object.
    Richiesto:
Ritorna:
  • (bool) Whether the taxonomy exists.
Definito a:
Codex:

Determines whether the taxonomy name exists.

Formerly is_taxonomy(), introduced in 2.3.0.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.



Sorgenti

function taxonomy_exists( $taxonomy ) {
	global $wp_taxonomies;

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