pre_term_{$field} WordPress Filter Hook

The pre_term_{$field} hook is triggered before a term is updated in the database. It allows you to modify the term before it is stored in the database. This hook is similar to the pre_post_{$field} hook.

apply_filters( "pre_term_{$field}", mixed $value, string $taxonomy ) #

Filters a term field value before it is sanitized.


Description

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


Top ↑

Parameters

$value

(mixed)Value of the term field.

$taxonomy

(string)Taxonomy slug.


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