Opened 12 years ago
Closed 12 years ago
#30127 closed enhancement (fixed)
Add `before_delete_term` action
| Reported by: | cmmarslender | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Taxonomy | Version: | 4.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch looks good to me.