WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/edited terms

Description

The edited_terms action is used to hook into code after a term is updated in the database.

A plugin (or theme) can register an action hook from the example below.

Parameters

$term_id
(int) (required) ID of the term edited
Default: None
$taxonomy
(string) (required) Taxonomy slug of the related term
Default: None

Examples

functions.php

<?php 
add_action( 'edited_terms', 'do_something_after_update', 10, 2 ); 

function do_something_after_update( $term_id, $taxonomy ) {
    // do something after update
}
?>

See Also