wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



delete_{$taxonomy} › Les Actions WordPress

Depuis4.5.0
Dépréciéen/a
do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids )
Paramètres: (4)
  • (int) $term Term ID.
    Requis: Oui
  • (int) $tt_id Term taxonomy ID.
    Requis: Oui
  • (WP_Term) $deleted_term Copy of the already-deleted term.
    Requis: Oui
  • (array) $object_ids List of term object IDs.
    Requis: Oui
Défini(e) dans:
Codex:

Fires after a term in a specific taxonomy is deleted.

The dynamic portion of the hook name, $taxonomy, refers to the specific taxonomy the term belonged to.

Possible hook names include:

  • delete_category
  • delete_post_tag




Source

do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids );