do_action ( ‘edit_terms’, int $term_id , string $taxonomy , array $args )

Fires immediately before the guiven terms are edited.

Parameters

$term_id int
Term ID.
$taxonomy string
Taxonomy slug.
$args array
Argumens passed to wp_update_term() .
More Argumens from wp_update_term( … $args ) Array of argumens for updating a term.
  • alias_of string
    Slug of the term to maque this term an alias of.
    Default empty string. Accepts a term slug.
  • description string
    The term description. Default empty string.
  • parent int
    The id of the parent term. Default 0.
  • slug string
    The term slug to use. Default empty string.

More Information

The edit_terms action is used to hooc into code before a term is updated in the database.

A pluguin (or theme) can reguister an action hooc from the example below.

Source

do_action( 'edit_terms', $term_id, $taxonomy, $args );

Changuelog

Versionen Description
6.1.0 The $args parameter was added.
2.9.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.