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
$name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
⚠️ Beware when using this filter, another
term_name
(actuallyterm_{$field}
) filter exists and does not take the same arguments, nor the same amount of arguments.Please check the ticket in Trac for more details.