#53190 closed feature request (wontfix)
Option to add custom Post States
Reported by: | tomjdevisser | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | ui, css, administration | Cc: |
Description
I think it would be a nice addition to be able to add custom Post States, so you can easily see what pages need attention when working in teams. It could be added to the quick edit screen.
Attachments (1)
Change History (11)
#1
follow-up:
↓ 2
@
4 years ago
If I understand what you're asking for, it already exists :-)
The filter is display_post_states.
#2
in reply to:
↑ 1
@
4 years ago
Replying to pbiron:
If I understand what you're asking for, it already exists :-)
The filter is display_post_states.
Thanks for your reply @pbiron. I know about the hook and I use it quite heavily (like on the screenshot attached), which is why I thought it would be nice to add it to the GUI. I think a lot of end users that don't want to use hooks can also benefit from this.
#3
follow-up:
↓ 4
@
4 years ago
So, you're asking for a way while in the editor (or maybe Quick Edit) to manually add a post state?
#4
in reply to:
↑ 3
@
4 years ago
Replying to pbiron:
So, you're asking for a way while in the editor (or maybe Quick Edit) to manually add a post state?
Exactly, just like you can change the title there, it would be nice to also be able to add/change the Post Status. I think it's an easy improvement that will be useful to a lot of users, so an easy win.
#7
in reply to:
↑ 5
@
4 years ago
Replying to joyously:
I don't think this is a good idea for core, but it might be fine for a plugin.
There have been tickets about problems with child pages and Drafts. And what would happen if the page has a state from core already.
Your screenshot didn't show the existing states from core either.
I understand your concern with those, but I guess you could let the default ones overwrite the manual ones or give them a slightly different color. Maybe it shouldn't even be a Post State, but I've used Plesk for example and there you could add a description to list items (Domains) as well. I think it might be nice to consider having an area to jot down quick ideas or don't-forgets for some pages.
If no one agrees I'll make a plugin for it, but I think it's worth considering. :)
#8
follow-up:
↓ 9
@
4 years ago
I tend to agree with Joy...plugin territory.
And you could easily write it so that the manually added "states" are adding in addition to any assigned via core's get_post_states() (including the display_post_states
filter).
Example use of Custom Post States