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

Checks whether a post tag with a given name exists.

Related Functions

post_exists, term_exists, email_exists, category_exists, metadata_exists

Top Google Results

User discussions

wpseek mobile