edit_term хук-событие . WP 2.3.0
Fires after a term has been updated, but before the term cache has been cleaned.
The 'edit_(taxonomy)' hook is also available for targeting a specific taxonomy.
Использование
add_action( 'edit_term', 'action_function_name_2404', 10, 3 ); function action_function_name_2404( $term_id, $tt_id, $taxonomy ){ // action... }
- $term_id(число)
- Term ID.
- $tt_id(число)
- Term taxonomy ID.
- $taxonomy(строка)
- Taxonomy slug.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
edit_term
wp-includes/taxonomy.php 3155
do_action( 'edit_term', $term_id, $tt_id, $taxonomy );