Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: term_exists() | Determines whether a taxonomy term exists. |
Check whether a post tag with a given name exists.
(int|string) (Required)
(mixed)
File: wp-admin/includes/taxonomy.php
function tag_exists( $tag_name ) { return term_exists( $tag_name, 'post_tag' ); }
Version | Description |
---|---|
2.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/tag_exists