edited_terms
Action HookDescription
Fires immediately after a term is updated in the database, but before its term-taxonomy relationship is updated.Hook Information
File Location |
wp-includes/taxonomy.php
View on GitHub
|
Hook Type | Action |
Line Number | 3380 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$term_id
|
Term ID. |
string
|
$taxonomy
|
Taxonomy slug. |
array
|
$args
|
Arguments passed to wp_update_term(). |
Usage Examples
Basic Usage
<?php
// Hook into edited_terms
add_action('edited_terms', 'my_custom_function', 10, 3);
function my_custom_function($term_id, $taxonomy, $args) {
// Your custom code here
}
Source Code Context
wp-includes/taxonomy.php:3380
- How this hook is used in WordPress core
<?php
3375 *
3376 * @param int $term_id Term ID.
3377 * @param string $taxonomy Taxonomy slug.
3378 * @param array $args Arguments passed to wp_update_term().
3379 */
3380 do_action( 'edited_terms', $term_id, $taxonomy, $args );
3381
3382 /**
3383 * Fires immediate before a term-taxonomy relationship is updated.
3384 *
3385 * @since 2.9.0
PHP Documentation
<?php
/**
* Fires immediately after a term is updated in the database, but before its
* term-taxonomy relationship is updated.
*
* @since 2.9.0
* @since 6.1.0 The `$args` parameter was added.
*
* @param int $term_id Term ID.
* @param string $taxonomy Taxonomy slug.
* @param array $args Arguments passed to wp_update_term().
*/
Quick Info
- Hook Type: Action
- Parameters: 3
- File: wp-includes/taxonomy.php
Related Hooks
Related hooks will be displayed here in future updates.