WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

edit_(taxonomy) хук-событие . WP 2.3.0

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:

  • edit_category
  • edit_post_tag

Использование

add_action( 'edit_(taxonomy)', 'action_function_name_8076', 10, 2 );
function action_function_name_8076( $term_id, $tt_id ){
	// action...
}
$term_id(int)
Term ID.
$tt_id(int)
Term taxonomy ID.

Список изменений

С версии 2.3.0 Введена.

Где вызывается хук

wp_update_term()
edit_(taxonomy)
wp-includes/taxonomy.php 3327
do_action( "edit_{$taxonomy}", $term_id, $tt_id );

Где используется хук в ядре WordPress

wp-admin/edit-form-advanced.php 82
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
wp-admin/includes/meta-boxes.php 1462
add_action( 'edit_form_after_title', 'edit_form_image_editor' );
wp-includes/class-wp-embed.php 45
add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/class-wp-embed.php 46
add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/default-filters.php 499
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );
wp-includes/default-filters.php 589
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
wp-includes/default-filters.php 590
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );