get_term_link

SummerySummery

Generate a permalink for a taxonomy term archive.

Syntax

get_term_link( WP_Term|int|string $term, string $taxonomy = '' )

ParametersParameters

$term

(WP_Term|int|string) (Required) The term object, ID, or slug whose link will be retrieved.

$taxonomy

(string) (Optional) Taxonomy.

Default value: ''

ReturnReturn

(string|WP_Error) URL of the taxonomy term archive on success, WP_Error if term does not exist.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top