edit_term_taxonomy

Fires immediate before a term-taxonomy relationship is updated.

Description

do_action( 'edit_term_taxonomy', (int) $tt_id, (string) $taxonomy ); 

Parameters (2)

0. $tt_id (int)
Term taxonomy ID.
1. $taxonomy (string)
Taxonomy slug.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'edit_term_taxonomy', $tt_id, $taxonomy ); 
The following example is for adding a hook callback.
  1. // define the edit_term_taxonomy callback 
  2. function action_edit_term_taxonomy( $tt_id, $taxonomy ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'edit_term_taxonomy', 'action_edit_term_taxonomy', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'edit_term_taxonomy', 'action_edit_term_taxonomy', 10, 2 ); 

Defined (3)

The action is defined in the following location(s).

/wp-includes/taxonomy.php  
  1. do_action( 'edit_term_taxonomy', $tt_id, $taxonomy ); 
  1. do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 
  1. do_action( 'edit_term_taxonomy', $term, $taxonomy->name );