edit_(taxonomy)
Fires after a term in a specific taxonomy has been updated, but before the term cache has been cleaned.
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
Usage
add_action( 'edit_(taxonomy)', 'wp_kama_edit_taxonomy_action', 10, 3 ); /** * Function for `edit_(taxonomy)` action-hook. * * @param int $term_id Term ID. * @param int $tt_id Term taxonomy ID. * @param array $args Arguments passed to wp_update_term(). * * @return void */ function wp_kama_edit_taxonomy_action( $term_id, $tt_id, $args ){ // action... }
- $term_id(int)
- Term ID.
- $tt_id(int)
- Term taxonomy ID.
- $args(array)
- Arguments passed to wp_update_term().
Changelog
Since 2.3.0 | Introduced. |
Since 6.1.0 | The $args parameter was added. |
Where the hook is called
edit_(taxonomy)
wp-includes/taxonomy.php 3442
do_action( "edit_{$taxonomy}", $term_id, $tt_id, $args );
Where the hook is used in WordPress
wp-admin/edit-form-advanced.php 75
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
wp-admin/includes/admin-filters.php 89
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
wp-admin/includes/admin-filters.php 90
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );
wp-admin/includes/meta-boxes.php 1591
add_action( 'edit_form_after_title', 'edit_form_image_editor' );
wp-includes/class-wp-embed.php 46
add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/class-wp-embed.php 47
add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/default-filters.php 525
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );