term_name WordPress Filter Hook
The term_name hook allows you to change the way the term name is displayed. This can be useful if you want to change the way the name is displayed in the front end, or if you want to change the way the name is displayed in the back end.
apply_filters( 'term_name', string $pad_tag_name , WP_Term $tag ) #
Filters display of the term name in the terms list table.
Description
The default output may include padding due to the term’s current level in the term hierarchy.
See also
Parameters
- $pad_tag_name
(string)The term name, padded if not top-level.
- $tag
(WP_Term)Term object.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |