Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#53190 closed feature request (wontfix)

Option to add custom Post States

Reported by: tomjdevisser's profile 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)

Schermafbeelding 2021-05-11 om 23.37.52.png (308.6 KB) - added by tomjdevisser 4 years ago.
Example use of Custom Post States

Download all attachments as: .zip

Change History (11)

@tomjdevisser
4 years ago

Example use of Custom Post States

#1 follow-up: @pbiron
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 @tomjdevisser
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.

Last edited 4 years ago by tomjdevisser (previous) (diff)

#3 follow-up: @pbiron
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 @tomjdevisser
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.

#5 follow-up: @joyously
4 years ago

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.
https://i.postimg.cc/QMmv6Td3/Pages-Word-Press-59.jpg

#6 @SergeyBiryukov
4 years ago

  • Component changed from General to Posts, Post Types

#7 in reply to: ↑ 5 @tomjdevisser
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.
https://i.postimg.cc/QMmv6Td3/Pages-Word-Press-59.jpg

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: @pbiron
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).

#9 in reply to: ↑ 8 @tomjdevisser
4 years ago

  • Keywords needs-patch needs-design removed
  • Resolution set to wontfix
  • Status changed from new to closed

Okay, thanks both for considering :) Will make a plugin for it and close the ticket.

#10 @SergeyBiryukov
4 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.