get_term_link
get_term_link ( $term, $taxonomy = '' )
Parameters:- (WP_Term|int|string) term The term object, ID, or slug whose link will be retrieved.
- (string) taxonomy Optional. Taxonomy. Default empty.
Returns:- (string|WP_Error) URL of the taxonomy term archive on success, WP_Error if term does not exist.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Generates a permalink for a taxonomy term archive.