term_id_filter

term_id_filter

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('term_id_filter') is found 2 times:

  • /wp-includes/taxonomy.php line 2692
    2688
    2689
    2690
    2691
    2692
    2693
    2694
    2695
    2696
    2697
    2698
    * @param int   $term_id Term ID.
     * @param int   $tt_id   Term taxonomy ID.
     * @param array $args    Arguments passed to wp_insert_term().
     */
    $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id, $args );
     
    clean_term_cache( $term_id, $taxonomy );
     
    /**
     * Fires after a new term is created, and after the term cache has been cleaned.
     *
  • /wp-includes/taxonomy.php line 3434
    3430
    3431
    3432
    3433
    3434
    3435
    3436
    3437
    3438
    3439
    3440
    */
    do_action( "edit_{$taxonomy}", $term_id, $tt_id, $args );
     
    /** This filter is documented in wp-includes/taxonomy.php */
    $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id );
     
    clean_term_cache( $term_id, $taxonomy );
     
    /**
     * Fires after a term has been updated, and the term cache has been cleaned.
     *