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|WP_Error) $term The term name to add or update, or a WP_Error object if there's an error.
    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 );