edited_terms
Fires immediately after a term is updated in the database, but before its term-taxonomy relationship is updated.
Использование
add_action( 'edited_terms', 'wp_kama_edited_terms_action', 10, 3 ); /** * Function for `edited_terms` action-hook. * * @param int $term_id Term ID. * @param string $taxonomy Taxonomy slug. * @param array $args Arguments passed to wp_update_term(). * * @return void */ function wp_kama_edited_terms_action( $term_id, $taxonomy, $args ){ // action... }
- $term_id(int)
- Term ID.
- $taxonomy(строка)
- Taxonomy slug.
- $args(массив)
- Arguments passed to wp_update_term().
Список изменений
С версии 2.9.0 | Введена. |
С версии 6.1.0 | The $args parameter was added. |
Где вызывается хук
edited_terms
edited_terms
wp-includes/taxonomy.php 3340
do_action( 'edited_terms', $term_id, $taxonomy, $args );
wp-includes/taxonomy.php 2557
do_action( 'edited_terms', $term_id, $taxonomy );