A WordPress-centric search engine for devs and theme authors



tag_exists ›

Since2.3.0
Deprecatedn/a
tag_exists ( $tag_name )
Parameters:
  • (int|string) $tag_name
    Required: Yes
Returns:
  • (mixed)
Defined at:
Codex:

Check whether a post tag with a given name exists.



Source

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