{$taxonomy}_{$field} WordPress Filter Hook

The {$taxonomy}_{$field} hook is used to modify a value in the {$taxonomy} taxonomy. The {$field} argument specifies the field to be modified, and the value to be returned by the hook should be the new value for that field. This hook can be used to modify any of the fields in the {$taxonomy} taxonomy, including the name, slug, description, and parent.

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

Filters the taxonomy field sanitized for display.


Description

The dynamic portions of the filter name, $taxonomy, and $field, refer to the taxonomy slug and taxonomy field, respectively.


Top ↑

Parameters

$value

(mixed)Value of the taxonomy field.

$term_id

(int)Term ID.

$context

(string)Context to retrieve the taxonomy 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