edited_term_taxonomy

edited_term_taxonomy

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('edited_term_taxonomy') is found 3 times:

  • /wp-includes/taxonomy.php line 3395
    3391
    3392
    3393
    3394
    3395
    3396
    3397
    3398
    3399
    3400
    3401
    * @param int    $tt_id    Term taxonomy ID.
     * @param string $taxonomy Taxonomy slug.
     * @param array  $args     Arguments passed to wp_update_term().
     */
    do_action( 'edited_term_taxonomy', $tt_id, $taxonomy, $args );
     
    /**
     * Fires after a term has been updated, but before the term cache has been cleaned.
     *
     * The {@see 'edit_$taxonomy'} hook is also available for targeting a specific
     * taxonomy.
  • /wp-includes/taxonomy.php line 4180
    4176
    4177
    4178
    4179
    4180
    4181
    4182
    4183
    4184
    4185
    4186
            do_action( 'edit_term_taxonomy', $term, $taxonomy->name );
            $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
     
            /** This action is documented in wp-includes/taxonomy.php */
            do_action( 'edited_term_taxonomy', $term, $taxonomy->name );
        }
    }
     
    /**
     * Updates term count based on number of objects.
     *
  • /wp-includes/taxonomy.php line 4207
    4203
    4204
    4205
    4206
    4207
    4208
    4209
    4210
    4211
    4212
    4213
            do_action( 'edit_term_taxonomy', $term, $taxonomy->name );
            $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
     
            /** This action is documented in wp-includes/taxonomy.php */
            do_action( 'edited_term_taxonomy', $term, $taxonomy->name );
        }
    }
     
    /**
     * Creates a new term for a term_taxonomy item that currently shares its term
     * with another term_taxonomy.