get_tag_link() WP 1.0
Retrieve the link to the tag.
Works based on: get_term_link()
No Hooks.
Return
String. Link on success, empty string if tag does not exist.
Usage
get_tag_link( $tag );
- $tag(int/object) (required)
- Tag ID or object.
Notes
- See: get_term_link()
Changelog
Since 2.3.0 | Introduced. |
Code of get_tag_link() get tag link WP 5.6
function get_tag_link( $tag ) {
return get_category_link( $tag );
}