edit_terms

edit_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('edit_terms') is found 2 times:

  • /wp-includes/taxonomy.php line 2584
    2580
    2581
    2582
    2583
    2584
    2585
    2586
    2587
    2588
    2589
    if ( empty( $slug ) ) {
        $slug = sanitize_title( $slug, $term_id );
     
        /** This action is documented in wp-includes/taxonomy.php */
        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 );
    }
  • /wp-includes/taxonomy.php line 3335
    3331
    3332
    3333
    3334
    3335
    3336
    3337
    3338
    3339
    3340
    3341
    * @param int    $term_id  Term ID.
     * @param string $taxonomy Taxonomy slug.
     * @param array  $args     Arguments passed to wp_update_term().
     */
    do_action( 'edit_terms', $term_id, $taxonomy, $args );
     
    $data = compact( 'name', 'slug', 'term_group' );
     
    /**
     * Filters term data before it is updated in the database.
     *

See this hook used in plugins: