if ( is_wp_error( $meta_update ) ) { return $meta_update;
} } $locations_update =
$this->
handle_locations( $term->term_id,
$request );
if ( is_wp_error( $locations_update ) ) { return $locations_update;
} $this->
handle_auto_add( $term->term_id,
$request );
$fields_update =
$this->
update_additional_fields_for_object( $term,
$request );
if ( is_wp_error( $fields_update ) ) { return $fields_update;
} $request->
set_param( 'context', 'view'
);
/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */
do_action( "rest_after_insert_{
$this->taxonomy
}",
$term,
$request, true
);