edit_terms
Fires immediately before the given terms are edited.
Usage
add_action( 'edit_terms', 'wp_kama_edit_terms_action', 10, 3 );
/**
* Function for `edit_terms` action-hook.
*
* @param int $term_id Term ID.
* @param string $taxonomy Taxonomy slug.
* @param array $args Arguments passed to wp_update_term().
*
* @return void
*/
function wp_kama_edit_terms_action( $term_id, $taxonomy, $args ){
// action...
}
- $term_id(int)
- Term 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_terms
edit_terms
wp-includes/taxonomy.php 3352
do_action( 'edit_terms', $term_id, $taxonomy, $args );
wp-includes/taxonomy.php 2601
do_action( 'edit_terms', $term_id, $taxonomy );