the_terms WordPress Filter Hook
The the_terms hook is used to display a list of terms associated with a post. It can be used in conjunction with the get_terms function to retrieve a list of terms for a given post.
apply_filters( 'the_terms', string $term_list , string $taxonomy , string $before , string $sep , string $after ) #
Filters the list of terms to display.
Parameters
- $term_list
(string)List of terms to display.
- $taxonomy
(string)The taxonomy name.
- $before
(string)String to use before the terms.
- $sep
(string)String to use between the terms.
- $after
(string)String to use after the terms.
Source
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |