Make WordPress Core

Opened 4 weeks ago

#48375 new enhancement

Introduce a separate capability for trashing a post

Reported by: johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: granular-capabilities needs-patch
Focuses: Cc:
PR Number:


Related: #41674

It's sometimes desirable to allow users to trash posts but not permanently delete them once trashed, nor empty the trash.

There should be a meta capability, trash_post|trash_posts, which by default maps to delete_post|delete_posts which is used when a post is trashed instead of deleted. This would allow a plugin to grant a user the ability to trash posts but not permanently delete them.

Change History (0)

Note: See TracTickets for help on using tickets.