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



created_term › WordPress Action Hooks

Since6.1.0
Deprecatedn/a
do_action( 'created_term', $term_id, $tt_id, $taxonomy, $args )
Parameters: (4)
  • (int) $term_id Term ID.
    Required: Yes
  • (int) $tt_id Term taxonomy ID.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
  • (array) $args Arguments passed to wp_insert_term().
    Required: Yes
Defined at:
Codex:

Fires after a new term is created, and after the term cache has been cleaned.

The {@see 'created_$taxonomy'} hook is also available for targeting a specific taxonomy.





Source

do_action( 'created_term', $term_id, $tt_id, $taxonomy, $args );