Opened 10 years ago
Closed 10 years ago
#30127 closed enhancement (fixed)
Add `before_delete_term` action
Reported by: | cmmarslender | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
Sometimes, the need arises to hook in to wp_delete_term, and take some action before the terms are actually deleted. Currently, there are only actions that fire after changes are already made in the database (term gone, posts already updated, etc). Would be really helpful to be able to hook into this process before any changes are made.
Patch attached with proposed addition.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Patch looks good to me.