Toggle Gutenberg preferences by user role
-
I’m looking for a way to hide some of the Page setting panels in the Gutenberg editor sidebar based on user role. Since there’s no specific class for those panel headers I can’t target them with CSS, so I was wondering if there’s a way to at least control which panels are active in the Preferences.
Does anyone know if there’s a hook or something I can use to conditionally pre-set these toggles based on user role?
Many thanks.
-
I don’t see any WordPress.com sites under your account here.
What is the URL of the site with the problem?
NOTE: We can only assist with websites hosted here at WordPress.com. If you’re using the WordPress software, but hosted elsewhere, you will need to reach out to your hosting provider or the WordPress.org community for guidance: https://wordpress.org/support/
- The topic ‘Toggle Gutenberg preferences by user role’ is closed to new replies.