Action hook 'saved_term'

in WP Core File wp-includes/taxonomy.php at line 2746

Description

Fires after a term has been saved, and the term cache has been cleared. The {@see 'saved_$taxonomy'} hook is also available for targeting a specific taxonomy.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 2746
wp-includes/taxonomy.php 3474

Parameters

Type Name Description
int $term_id Term ID.
int $tt_id Term taxonomy ID.
string $taxonomy Taxonomy slug.
bool $update Whether this is an existing term being updated.
array $args Arguments passed to wp_insert_term().

PHP Doc

/**
	 * Fires after a term has been saved, and the term cache has been cleared.
	 *
	 * The {@see 'saved_$taxonomy'} hook is also available for targeting a specific
	 * taxonomy.
	 *
	 * @since 5.5.0
	 * @since 6.1.0 The `$args` parameter was added.
	 *
	 * @param int    $term_id  Term ID.
	 * @param int    $tt_id    Term taxonomy ID.
	 * @param string $taxonomy Taxonomy slug.
	 * @param bool   $update   Whether this is an existing term being updated.
	 * @param array  $args     Arguments passed to wp_insert_term().
	 */