wppaste
WordPress

do_action( 'edited_term', int $term_id, int $tt_id, string $taxonomy, array $args )

Since
2.3.0, 6.1.0
Fires after a term has been updated, and the term cache has been cleaned.

Description

The 'edited_$taxonomy' hook is also available for targeting a specific taxonomy.

Parameters

$term_idint
Term ID.
$tt_idint
Term taxonomy ID.
$taxonomystring
Taxonomy slug.
$argsarray
Arguments passed to wp_update_term().

Fired at · 1

  • wp-includes/taxonomy.php:3515wp_update_term()

Source

	 *	 * @param int    $term_id  Term ID.	 * @param int    $tt_id    Term taxonomy ID.	 * @param string $taxonomy Taxonomy slug.	 * @param array  $args     Arguments passed to wp_update_term().	 */	do_action( 'edited_term', $term_id, $tt_id, $taxonomy, $args ); 	/**	 * Fires after a term for a specific taxonomy has been updated, and the term	 * cache has been cleaned.	 *	 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.

History

Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

6.1.0
The $args parameter was added.from the docblock
2.3.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.