Uma área de pesquisa sobre o WordPress para devs e autores do tema



delete_{$taxonomy} ›

Desde4.5.0
Obsoleton/a
do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids )
Parâmetros: (4)
  • (int) $term Term ID.
    Required: Yes
  • (int) $tt_id Term taxonomy ID.
    Required: Yes
  • (mixed) $deleted_term Copy of the already-deleted term, in the form specified by the parent function. WP_Error otherwise.
    Required: Yes
  • (array) $object_ids List of term object IDs.
    Required: Yes
Definido em:
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.





Fonte

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