HTTP/2 302
server: nginx
date: Fri, 10 Oct 2025 16:57:43 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: no-cache, must-revalidate, max-age=0, no-store, private
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/delete_taxonomy/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Fri, 10 Oct 2025 16:57:44 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
delete_{$taxonomy} – Hook | Developer.WordPress.org
do_action( “delete_{$taxonomy}”, int $term, int $tt_id, WP_Term $deleted_term, array $object_ids )
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
$term
intTerm ID.
$tt_id
intTerm taxonomy ID.
$deleted_term
WP_TermCopy of the already-deleted term.
$object_ids
arrayList of term object IDs.
Version | Description |
---|
4.5.0 | Introduced the $object_ids argument. |
2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.