Make WordPress Core

Opened 9 years ago

Closed 5 months ago

#40255 closed feature request (maybelater)

Parameter to Enable/Disable Trash on register_post_type();

Reported by: michaelecklund's profile michael.ecklund 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)

#1 @SirLouen
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

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_post action hook, you can simply force a full deletion without trashing before it gets to Trash. Technically, this satisfies the exact same purpose as EMPTY_TRASH_DAYS to 0 without having to deal with the Trash selectable 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.

Note: See TracTickets for help on using tickets.