#60433 closed enhancement (fixed)
Adding delete_post_{$post->post_type} action hook
| Reported by: | gerardreches | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6 |
| Component: | Posts, Post Types | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Is there any reason not to add a delete_post_{$post->post_type} action hook to the core? We have it for save and edit, so why not for delete as well.
Change History (10)
#1
@
3 years ago
- Summary Adding delete_post_{$post->post_type} → Adding delete_post_{$post->post_type} action hook
This ticket was mentioned in PR #6036 on WordPress/wordpress-develop by @benniledl.
3 years ago
#2
- Keywords has-patch added
This ticket was mentioned in Slack in #core by gerardreches. View the logs.
2 years ago
#6
@
2 years ago
- Milestone Awaiting Review → 6.6
Moving to 6.6 for consideration. Patch needs a little updating.
@swissspidy commented on PR #6036:
2 years ago
#10
Committed in https://core.trac.wordpress.org/changeset/57853
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
added delete_post_{->post_type} and deleted_post_{- >post_type} hook
Trac ticket: https://core.trac.wordpress.org/ticket/60433