edit_terms action-hookWP 2.9.0

Fires immediately before the given terms are edited.

Usage

add_action( 'edit_terms', 'wp_kama_edit_terms_action', 10, 2 );

/**
 * Function for `edit_terms` action-hook.
 * 
 * @param int    $term_id  Term ID.
 * @param string $taxonomy Taxonomy slug.
 *
 * @return void
 */
function wp_kama_edit_terms_action( $term_id, $taxonomy ){

	// action...
}
$term_id(int)
Term ID.
$taxonomy(string)
Taxonomy slug.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

wp_update_term()
edit_terms
wp_insert_term()
edit_terms
wp-includes/taxonomy.php 3241
do_action( 'edit_terms', $term_id, $taxonomy );
wp-includes/taxonomy.php 2508
do_action( 'edit_terms', $term_id, $taxonomy );

Where the hook is used in WordPress

Usage not found.