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.
Использование
add_action( 'edit_(taxonomy)', 'action_function_name_8141', 10, 2 ); function action_function_name_8141( $term_id, $tt_id ){ // action... }
- $term_id(число)
- Term ID.
- $tt_id(число)
- Term taxonomy ID.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
edit_(taxonomy)
wp-includes/taxonomy.php 3168
do_action( "edit_{$taxonomy}", $term_id, $tt_id );
Где используется хук в ядре WordPress
wp-includes/taxonomy.php 82
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
wp-includes/taxonomy.php 1459
add_action( 'edit_form_after_title', 'edit_form_image_editor' );
wp-includes/taxonomy.php 43
add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/taxonomy.php 44
add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/taxonomy.php 460
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );