W3cubDocs

/WordPress

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.

Parameters

$valuemixed
Value of the term field.
$term_idint
Term ID.
$taxonomystring
Taxonomy slug.
$contextstring
Context to retrieve the term field value.

Source

$value = apply_filters( "term_{$field}", $value, $term_id, $taxonomy, $context );

Changelog

Version Description
2.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/term_field