edit_term_taxonomy
Fires immediate before a term-taxonomy relationship is updated.
Usage
add_action( 'edit_term_taxonomy', 'wp_kama_edit_term_taxonomy_action', 10, 3 );
/**
* Function for `edit_term_taxonomy` action-hook.
*
* @param int $tt_id Term taxonomy ID.
* @param string $taxonomy Taxonomy slug.
* @param array $args Arguments passed to wp_update_term().
*
* @return void
*/
function wp_kama_edit_term_taxonomy_action( $tt_id, $taxonomy, $args ){
// action...
}
- $tt_id(int)
- Term taxonomy ID.
- $taxonomy(string)
- Taxonomy slug.
- $args(array)
- Arguments passed to wp_update_term().
Changelog
| Since 2.9.0 | Introduced. |
| Since 6.1.0 | The $args parameter was added. |
Where the hook is called
edit_term_taxonomy
wp-includes/taxonomy.php 3402
do_action( 'edit_term_taxonomy', $tt_id, $taxonomy, $args );
wp-includes/taxonomy.php 4210
do_action( 'edit_term_taxonomy', $tt_id, $taxonomy->name );
wp-includes/taxonomy.php 4240
do_action( 'edit_term_taxonomy', $term, $taxonomy->name );