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.

Top ↑

See also


Top ↑

Parameters

$pad_tag_name

(string)The term name, padded if not top-level.

$tag

(WP_Term)Term object.


Top ↑

Source

File: wp-admin/includes/class-wp-terms-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.