wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



delete_term › WordPress Action Hooks

Seit4.5.0
Veraltetn/v
do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term, $object_ids )
Parameter: (5)
  • (int) $term Term ID.
    Erforderlich: Ja
  • (int) $tt_id Term taxonomy ID.
    Erforderlich: Ja
  • (string) $taxonomy Taxonomy slug.
    Erforderlich: Ja
  • (WP_Term) $deleted_term Copy of the already-deleted term.
    Erforderlich: Ja
  • (array) $object_ids List of term object IDs.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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