Menu
wpseek
mobile
Search
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:
wp-admin/includes/taxonomy.php
, line 222
Introduced in WordPress:
2.3.0
Deprecated in WordPress:
—
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
More ...
New topic ...
wpseek
mobile
Recently added
1
wp_render_empty_block_template_warning
My Bookmarks
- Soon -
About
Imprint
Privacy Policy