Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Consider revising wp_statuses_unregister_status_for_post_type #78

@shawfactor

Description

@shawfactor

Currently if the publish post status is unregistered this function also unregisters draft and pending

I think this logic should be reviewed. There are many use cases where publish may not be desired but draft are pending are

eg I created a “sent” status for a letter custom post type. I did not want unauthenticates users to access the cpt so I unregistered publish. But I did want the workflow associated with draft and pending statuses. I forked the code to get it to work but that is not ideal.

I suggest removing the current logic and if people don’t want draft and pending they can explicitly unregister them. Is that possible?

if that is not possible due to backwards compatibility then can you please add a filter so this logic can be bypassed?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions