Title: term_links-{$taxonomy}
Published: April 25, 2014
Last modified: April 28, 2025

---

# apply_filters( “term_links-{$taxonomy}”, string[] $links )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#wp--skip-link--target)

Filters the term links for a given taxonomy.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.

Possible hook names include:

 * `term_links-category`
 * `term_links-post_tag`
 * `term_links-post_format`

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#parameters)󠁿

 `$links`string[]

An array of term links.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#source)󠁿

    ```php
    $term_links = apply_filters( "term_links-{$taxonomy}", $links );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/category-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/category-template.php#L1375)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/category-template.php#L1375-L1375)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#related)󠁿

| Used by | Description | 
| [get_the_term_list()](https://developer.wordpress.org/reference/functions/get_the_term_list/)`wp-includes/category-template.php` |

Retrieves a post’s terms as a list with specified format.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fterm_links-taxonomy%2F)
before being able to contribute a note or feedback.