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
File: wp-admin/includes/class-wp-terms-list-table.php
.
View all references
$name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
⚠️ 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.