WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 3 times in this file.
| Line | Code |
|---|---|
| 3403 | * Fires immediately after a term-taxonomy relationship is updated. |
| 3404 | * |
| 3405 | * @since 2.9.0 |
| 3406 | * @since 6.1.0 The `$args` parameter was added. |
| 3407 | * |
| 3408 | * @param int $tt_id Term taxonomy ID. |
| 3409 | * @param string $taxonomy Taxonomy slug. |
| 3410 | * @param array $args Arguments passed to wp_update_term(). |
| 3411 | */ |
| 3412 | do_action( 'edited_term_taxonomy', $tt_id, $taxonomy, $args ); |
| 3413 | |
| 3414 | /** |
| 3415 | * Fires after a term has been updated, but before the term cache has been cleaned. |
| 3416 | * |
| 3417 | * The {@see 'edit_$taxonomy'} hook is also available for targeting a specific |
| 3418 | * taxonomy. |
| 3419 | * |
| 3420 | * @since 2.3.0 |
| 3421 | * @since 6.1.0 The `$args` parameter was added. |
| Line | Code |
| 4201 | * @param int $count Term count. |
| 4202 | */ |
| 4203 | do_action( 'update_term_count', $tt_id, $taxonomy->name, $count ); |
| 4204 | |
| 4205 | /** This action is documented in wp-includes/taxonomy.php */ |
| 4206 | do_action( 'edit_term_taxonomy', $tt_id, $taxonomy->name ); |
| 4207 | $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $tt_id ) ); |
| 4208 | |
| 4209 | /** This action is documented in wp-includes/taxonomy.php */ |
| 4210 | do_action( 'edited_term_taxonomy', $tt_id, $taxonomy->name ); |
| 4211 | } |
| 4212 | } |
| 4213 | |
| 4214 | /** |
| 4215 | * Updates term count based on number of objects. |
| 4216 | * |
| 4217 | * Default callback for the 'link_category' taxonomy. |
| 4218 | * |
| 4219 | * @since 3.3.0 |
| Line | Code |
| 4231 | |
| 4232 | /** This action is documented in wp-includes/taxonomy.php */ |
| 4233 | do_action( 'update_term_count', $term, $taxonomy->name, $count ); |
| 4234 | |
| 4235 | /** This action is documented in wp-includes/taxonomy.php */ |
| 4236 | do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); |
| 4237 | $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); |
| 4238 | |
| 4239 | /** This action is documented in wp-includes/taxonomy.php */ |
| 4240 | do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); |
| 4241 | } |
| 4242 | } |
| 4243 | |
| 4244 | /** |
| 4245 | * Creates a new term for a term_taxonomy item that currently shares its term |
| 4246 | * with another term_taxonomy. |
| 4247 | * |
| 4248 | * @ignore |
| 4249 | * @since 4.2.0 |