edited_terms

edited_terms

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('edited_terms') is found 2 times:

  • /wp-includes/taxonomy.php line 2588
    2584
    2585
    2586
    2587
    2588
    2589
    2590
    2591
    2592
    2593
    2594
        do_action( 'edit_terms', $term_id, $taxonomy );
        $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) );
     
        /** This action is documented in wp-includes/taxonomy.php */
        do_action( 'edited_terms', $term_id, $taxonomy );
    }
     
    $tt_id = $wpdb->get_var( $wpdb->prepare( "SELECT tt.term_taxonomy_id FROM $wpdb->term_taxonomy AS tt INNER JOIN $wpdb->terms AS t ON tt.term_id = t.term_id WHERE tt.taxonomy = %s AND t.term_id = %d", $taxonomy, $term_id ) );
     
    if ( ! empty( $tt_id ) ) {
        return array(
  • /wp-includes/taxonomy.php line 3369
    3365
    3366
    3367
    3368
    3369
    3370
    3371
    3372
    3373
    3374
    3375
    * @param int    $term_id  Term ID.
     * @param string $taxonomy Taxonomy slug.
     * @param array  $args     Arguments passed to wp_update_term().
     */
    do_action( 'edited_terms', $term_id, $taxonomy, $args );
     
    /**
     * Fires immediate before a term-taxonomy relationship is updated.
     *
     * @since 2.9.0
     * @since 6.1.0 The `$args` parameter was added.

See this hook used in plugins: