term_{$field} WordPress Filter Hook

The {$field} WordPress hook is a hook that allows you to modify the output of a specific field. This hook is typically used to add custom CSS or JavaScript to a field.

apply_filters( "term_{$field}", mixed $value, int $term_id, string $taxonomy, string $context ) #

Filters the term field sanitized for display.


Description

The dynamic portion of the hook name, $field, refers to the term field name.


Top ↑

Parameters

$value

(mixed)Value of the term field.

$term_id

(int)Term ID.

$taxonomy

(string)Taxonomy slug.

$context

(string)Context to retrieve the term field value.


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.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.

Show More
Show More