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



tag_exists › WordPress Function

Da2.3.0
Deprecaton/a
tag_exists ( $tag_name )
Parametri:
  • (int|string) $tag_name
    Richiesto:
Ritorna:
  • (mixed) Returns null if the term does not exist. Returns an array of the term ID and the term taxonomy ID if the pairing exists. Returns 0 if term ID 0 is passed to the function.
Definito a:
Codex:

Checks whether a post tag with a given name exists.



Sorgenti

function tag_exists( $tag_name ) {
	return term_exists( $tag_name, 'post_tag' );
}