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.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |