tag_exists


tag_exists ( $tag_name )

Parameters:
  • (int|string) tag_name
Returns:
  • (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.
Defined at:

Description

Check whether a post tag with a given name exists.

Related Functions

term_exists, post_exists, email_exists, taxonomy_exists, category_exists

Top Google Results

User discussions

wpseek mobile