do_action( "saved_{$taxonomy}", int $term_id, int $tt_id, bool $update, array $args )

Fires after a term in a specific taxonomy has been saved, and the term cache has been cleared.


Description

The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.

Possible hook names include:

  • saved_category
  • saved_post_tag

Parameters

$term_id

Term ID.

$tt_id

Term taxonomy ID.

$update

Whether this is an existing term being updated.

$args

Arguments passed to wp_insert_term().


Source

File: wp-includes/taxonomy.php

View on GitHub


Changelog

Changelog
Version Description
6.1.0 The $args parameter was added.
5.5.0 Introduced.