wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_insert_term › WordPress Filter Hooks

Since6.1.0
Deprecatedn/a
apply_filters( 'pre_insert_term', $term, $taxonomy, $args )
Parameters: (3)
  • (string|WP_Error) $term The term name to add, or a WP_Error object if there's an error.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
  • (array|string) $args Array or query string of arguments passed to wp_insert_term().
    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, $args );