wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



taxonomy_exists › WordPress Function

Depuis3.0.0
Dépréciéen/a
taxonomy_exists ( $taxonomy )
Paramètres:
  • (string) $taxonomy Name of taxonomy object.
    Requis: Oui
Retourne:
  • (bool) Whether the taxonomy exists.
Défini(e) dans:
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.


Source

function taxonomy_exists( $taxonomy ) {
	global $wp_taxonomies;

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