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



delete_term › WordPress Action Hooks

Since4.5.0
Deprecatedn/a
do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term, $object_ids )
Parameters: (5)
  • (int) $term Term ID.
    Required: Yes
  • (int) $tt_id Term taxonomy ID.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
  • (WP_Term) $deleted_term Copy of the already-deleted term.
    Required: Yes
  • (array) $object_ids List of term object IDs.
    Required: Yes
Defined at:
Codex:

Fires after a term is deleted from the database and the cache is cleaned.

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





Source

do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term, $object_ids );