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

The pre_{$taxonomy}_{$field} hook is called before a specific taxonomy field is updated. This hook can be used to modify the value of the field before it is saved to the database.

apply_filters( "pre_{$taxonomy}_{$field}", mixed $value ) #

Filters a taxonomy field before it is sanitized.


Description

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


Top ↑

Parameters

$value

(mixed)Value of the taxonomy field.


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