tag_exists( int|string $tag_name )

Check whether a post tag with a given name exists.


Parameters

$tag_name

(int|string) (Required)


Return

(mixed)


Source

File: wp-admin/includes/taxonomy.php

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


Changelog

Changelog
Version Description
WP-2.3.0 Introduced.