split_shared_term хук-событие . WP 4.2.0
Fires after a previously shared taxonomy term is split into two separate terms.
Использование
add_action( 'split_shared_term', 'action_function_name_9334', 10, 4 ); function action_function_name_9334( $term_id, $new_term_id, $term_taxonomy_id, $taxonomy ){ // action... }
- $term_id(число)
- ID of the formerly shared term.
- $new_term_id(число)
- ID of the new term created for the $term_taxonomy_id.
- $term_taxonomy_id(число)
- ID for the term_taxonomy row affected by the split.
- $taxonomy(строка)
- Taxonomy for the split term.
Список изменений
С версии 4.2.0 | Введена. |
Где вызывается хук
split_shared_term
wp-includes/taxonomy.php 4068
do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id, $term_taxonomy->taxonomy );
Где используется хук в ядре WordPress
wp-includes/taxonomy.php 446
add_action( 'split_shared_term', '_wp_check_split_default_terms', 10, 4 );
wp-includes/taxonomy.php 447
add_action( 'split_shared_term', '_wp_check_split_terms_in_menus', 10, 4 );
wp-includes/taxonomy.php 448
add_action( 'split_shared_term', '_wp_check_split_nav_menu_terms', 10, 4 );