How can I get unpublished pages visible in the menu for privileged user roles?
-
My question does not concern your concrete plugin, but is rather an idea for a new standalone plugin.
I ask you because this feature idea is very closely related to the subject domain of your plugin and you likely know which WordPress Core behavior needs to be altered to achieve the desired outcome.
I wonder why this obviously desire-able workflow did yet not make it into WordPress? Privileged roles (Admin, Editor) can get the full experience of the website ahead of time — that is they see page content AND also how that new content will fit into the menu (important part of the UX!) — whereas disallowed users and web spiders see neither.
So I would like to only manage the post-status of pages, which the WordPress workflow anyhow enforces upon you. And would like the visibility of their corresponding menu items follow acordingly. Just with a slightly tweaked behavior: Unpublished pages ARE visible in the menu to legitimated user roles. In a MVP this would be hardcoded to Admin + Editor.
In v2 there could be some customization settings:
Menu items corresponding to:
- Post types: ?? Pages ?? Posts ?? Products ?? CustomType
- of status: ?? Draft ?? Pending ?? Future ?? Private
- are visible to: ?? Admin ?? Editor ?? Contributor ?? Subscriber
Denote Post Status in Menu Item and/or Page Title like this:
Post Status | Menu Title | Page Title | ------------------------------------------------------------ Draft | [ Prefix ? ] : ?? | [ Suffix ? ] : (Draft) | Pending | [ Prefix ? ] : ? | [ Suffix ? ] : (Pending) | Future | [ Prefix ? ] : ?? | [ Suffix ? ] : (Upcoming) | Private | [ Prefix ? ] : ?? | [ Suffix ? ] : (VIP) |
Remarks on the feature extensions over time:
v2: E.g. you don’ want “Draft” pages in order to have less “noise” in the menu, but want the other statuses there. And you want to customize how the status is denoted. Currently that’s hardcoded for Post Titles. And for menu status is not denoted, that would be something new too.
v3: Rule groups: Add new rule, select roles in that group, select which post types of what status they shall see.
- The topic ‘How can I get unpublished pages visible in the menu for privileged user roles?’ is closed to new replies.