diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index 4631a534dd..2949821d73 100644
|
|
function wp_insert_term( $term, $taxonomy, $args = array() ) { |
2396 | 2396 | */ |
2397 | 2397 | do_action( "created_{$taxonomy}", $term_id, $tt_id ); |
2398 | 2398 | |
| 2399 | /** |
| 2400 | * Fires after a term has been saved, and the term cache has been cleared. |
| 2401 | * |
| 2402 | * @since 5.x.0 |
| 2403 | * |
| 2404 | * @param int $term_id Term ID. |
| 2405 | * @param int $tt_id Term taxonomy ID. |
| 2406 | * @param string $taxonomy Taxonomy slug. |
| 2407 | * @param bool $update Whether this is an existing term being updated. |
| 2408 | */ |
| 2409 | do_action( 'saved_term', $term_id, $tt_id, $taxonomy, false ); |
| 2410 | |
| 2411 | /** |
| 2412 | * Fires after a term in a specific taxonomy has been saved, and the term |
| 2413 | * cache has been cleared. |
| 2414 | * |
| 2415 | * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. |
| 2416 | * |
| 2417 | * @since 5.x.0 |
| 2418 | * |
| 2419 | * @param int $term_id Term ID. |
| 2420 | * @param int $tt_id Term taxonomy ID. |
| 2421 | * @param bool $update Whether this is an existing term being updated. |
| 2422 | */ |
| 2423 | do_action( "saved_{$taxonomy}", $term_id, $tt_id, false ); |
| 2424 | |
2399 | 2425 | return array( |
2400 | 2426 | 'term_id' => $term_id, |
2401 | 2427 | 'term_taxonomy_id' => $tt_id, |
… |
… |
function wp_update_term( $term_id, $taxonomy, $args = array() ) { |
3047 | 3073 | */ |
3048 | 3074 | do_action( "edited_{$taxonomy}", $term_id, $tt_id ); |
3049 | 3075 | |
| 3076 | /** This action is documented in wp-includes/taxonomy.php */ |
| 3077 | do_action( 'saved_term', $term_id, $tt_id, $taxonomy, true ); |
| 3078 | |
| 3079 | /** This action is documented in wp-includes/taxonomy.php */ |
| 3080 | do_action( "saved_{$taxonomy}", $term_id, $tt_id, true ); |
| 3081 | |
3050 | 3082 | return array( |
3051 | 3083 | 'term_id' => $term_id, |
3052 | 3084 | 'term_taxonomy_id' => $tt_id, |