Opened 9 years ago
Closed 5 months ago
#40255 closed feature request (maybelater)
Parameter to Enable/Disable Trash on register_post_type();
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.7.3 |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | Cc: |
Description
It would be nice to have the ability to toggle on/off the "trash" feature on specific Post Types.
I figured, for extreme simplicity; A parameter could be specified during Post Type registration. Or perhaps factored into the "supports" parameter (similarly to revisions)
Thoughts?
Change History (1)
Note: See
TracTickets for help on using
tickets.
There is no granular Trash disabling option, not even for Pages or Posts.
Almost by the time you posted this, there was a workaround in SO, using
wp_trash_postaction hook, you can simply force a full deletion without trashing before it gets to Trash. Technically, this satisfies the exact same purpose asEMPTY_TRASH_DAYSto 0 without having to deal with theTrashselectable menus and laser targeted to your specific CPT.8 years have passed, and this has received 0 traction, so it doesn't seem to be a very solicited feature.
For all these reasons, I would rather opt for closing this as
maybelater.