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.1

do_action('edit_terms') is found 2 times:

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