wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



taxonomy_exists › WordPress Function

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 Conditional Tags} article in the Theme Developer Handbook.


Sorgenti

function taxonomy_exists( $taxonomy ) {
	global $wp_taxonomies;

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