-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Visibility options #17407
Comments
Hey @woorise I see your issue has been overlooked. Let's see if someone can give a comment here. |
Hey @woorise - currently there is not an option to do that and honestly I don't know if it's a good idea implement this in core. I think an easy alternative would be to use just some css to hide it, no? |
Hey @ntsekouras, that's how we do it right now but it would be nice to have a better control over the options to prevent more experienced users to alter them. We are running a multisite installation and we would like to conditionally show/hide some options such as the "Stick to the top of the blog" or the "Pending review". |
It was implemented with #17117: You can remove this panel with the following JS call: wp.data.dispatch( 'core/edit-post' ).removeEditorPanel( 'post-status' ); |
Do we have docs for the JS call? |
Actually, it's an individual visibility option from the panel.
It can be disabled by removing the permission for the user: gutenberg/packages/editor/src/components/post-visibility/check.js Lines 12 to 15 in 004a32e
However, it's too general I don't think that useful in this context. |
The dropdown proposed in #42030 (comment) would address this. Screen.Recording.2022-06-30.at.22.20.02.mov |
Is there any way to remove the visibility options from the Status & Visibility section?
The text was updated successfully, but these errors were encountered: