WordPress at Your Fingertips
function is not described

tag_exists() WP 2.3.0

Check whether a post tag with a given name exists.

No Hooks.

Return

Mixed.

Usage

tag_exists( $tag_name );
$tag_name *(int string) (required)*

Changelog

Since 2.3.0 Introduced.

Code of tag_exists() WP 5.8.2

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