term_id_filter filter-hook . WP 2.3.0
Filters the term ID after a new term is created.
Usage
add_filter( 'term_id_filter', 'filter_function_name_8876', 10, 2 ); function filter_function_name_8876( $term_id, $tt_id ){ // filter... return $term_id; }
- $term_id(int)
- Term ID.
- $tt_id(int)
- Term taxonomy ID.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
term_id_filter
term_id_filter
wp-includes/taxonomy.php 2466
$term_id = apply_filters( 'term_id_filter', $term_id, $tt_id );
wp-includes/taxonomy.php 3171
$term_id = apply_filters( 'term_id_filter', $term_id, $tt_id );
Where in WP core the hook is used WordPress
wp-includes/ms-default-filters.php 78
add_filter( 'term_id_filter', 'global_terms', 10, 2 );