A WordPress-centric search engine for devs and theme authors



pre_insert_term ›

Since3.0.0
Deprecatedn/a
apply_filters( 'pre_insert_term', $term, $taxonomy )
Parameters: (2)
  • (string) $term The term to add or update.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
Defined at:
Codex:

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





Source

$term = apply_filters( 'pre_insert_term', $term, $taxonomy );