pre_insert_term WordPress Filter Hook
The pre_insert_term hook is called before a new term is inserted into the database. It allows you to modify the term before it is stored.
apply_filters( 'pre_insert_term', string|WP_Error $term , string $taxonomy ) #
Filters a term before it is sanitized and inserted into the database.