WordPress at a glance
action is not described

rest_after_insert_(taxonomy) action-hook . WP 5.0.0

Fires after a single term is completely created or updated via the REST API.

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


add_action( 'rest_after_insert_(taxonomy)', 'action_function_name_7772', 10, 3 );
function action_function_name_7772( $term, $request, $creating ){
	// action...
Inserted or updated term object.
Request object.
True when creating a term, false when updating.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 470
do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, true );
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 562
do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, false );

Where the hook is used (in WP core)

Does not used.