On this page
apply_filters( "term_links-{$taxonomy}", string[] $links )
Filters the term links for a given taxonomy.
Description
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
term_links-categoryterm_links-post_tagterm_links-post_format
Parameters
$linksstring[]-
An array of term links.
Source
File: wp-includes/category-template.php. View all references
$term_links = apply_filters( "term_links-{$taxonomy}", $links ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Related
Used By
| Used By | Description |
|---|---|
| get_the_term_list() wp-includes/category-template.php | Retrieves a post’s terms as a list with specified format. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/term_links-taxonomy