apply_filters( 'pre_insert_term', string $term, string $taxonomy )

Filters a term before it is sanitized and inserted into the database.


Parameters

$term

(string) The term to add or update.

$taxonomy

(string) Taxonomy slug.


Source

File: wp-includes/taxonomy.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.0.0 Introduced.