term_id_filter WordPress Filter Hook

The term_id_filter hook is a WordPress hook that allows you to modify the term ID before it is saved to the database. This can be useful for cases where you need to ensure that a certain term ID is always used, or for modifying the term ID based on some other value.

apply_filters( 'term_id_filter', int $term_id, int $tt_id ) #

Filters the term ID after a new term is created.


Parameters

$term_id

(int)Term ID.

$tt_id

(int)Term taxonomy ID.


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