term_id_filter

term_id_filter

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('term_id_filter') is found 2 times:

  • /wp-includes/taxonomy.php line 2661
    	 * @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 3405
    	 */
    	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.
    	 *