get_tag_link( int|object $tag )
Retrieves the link to the tag.
Description
See also
Parameters
- $tag
-
(int|object) (Required) Tag ID or object.
Return
(string) Link on success, empty string if tag does not exist.
Source
File: wp-includes/category-template.php
function get_tag_link( $tag ) { return get_category_link( $tag ); }
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_tag_link