[Resuelto] Programatically remove Front End Display
This support ticket is created hace 7 años, 12 meses. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to:
Programmatically (or with a setting I've not discovered) remove the, "Front-End Display" meta box for lower level users.
Background:
I have a workflow for my editors and contributors has them filling out fields in CPTs that I have created, and these CPTs have various relationships to each other. The front end views for these CPTs and their relationships already established in the theme.
In the last updates of Toolset, I see we now have a Front-End Editor Metta box. I've not had a chance to work with this tool yet, but this new metabox has really has confused my team. In my context I can't imagine editors needing to construct front end views, so it's inappropriate for them to have access to this functionality.
I know I can simply hide the meta box under "Screen Options" however I've also disabled Screen Options on these pages, as I didn't want users hiding important workflow features, as this would be a support nightmare.
So I have two Requests:
1) What is the ID of the "Front-End Display" metabox. With this I should be able to remove it programmatically using:
2) Is there a setting that I've not yet found that removes this meta box for users below a particular role? If not, then I'd like to add this as a feature request. I believe that this is a fairly common use case, where we just want editors or authors fill in the fields, without any front end views creation.