Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Admin menu items are not hidden
- This topic has 4 replies, 2 voices, and was last updated 3 years, 10 months ago by
DanielKandora.
-
AuthorPosts
-
30/01/2022 at 09:56 #7809
DanielKandora
ParticipantHi there,
I have set in WP User Role that you should not access some menu items. But the user can still access these menu items. It doesn’t work for all others, but Design→ Customizer and Design→Background.
And I also use LearnDash and when I turn on WP user role, a new menu item “Transactions” is created, but it shouldn’t be shown.
How can I fix this?
greeting
Daniel01/02/2022 at 04:29 #7815Vladimir
KeymasterHi Daniel,
URE “Admin menu blocking” works with the static admin menu created by plugins in a classic static way. URE saves a copy of the full admin menu available for the ‘administrator’ and then allows to select what to hide from the list of those menu items.
Learndash builds some submenu dynamically in relation of what page/post is selected currently. “Transactions” menu item is between them. It’s protected by ‘manage_options’ user capability:
define( 'LEARNDASH_ADMIN_CAPABILITY_CHECK', 'manage_options' );Clarify with ‘Design->Customizer”, which you can not hide. Is this menu item created by your custom theme? In this case I need access to the theme source code .zip in order to try repoduce the issue.
03/02/2022 at 10:29 #7817DanielKandora
ParticipantHi there,
I have now deactivated the “manage_options” menu item, now the “Transactions” menu item is no longer displayed, what effects does this function still have, is it possible that some rights are now missing or what controls “manage_options”?
Regarding Design→Customizer:
The customizer is part of every theme, and it’s still displayed even though I turned it off in URE. The menu item “Background” comes from the theme.
How can I securely send you the access data for the staging site here?
Greetings Daniel
03/02/2022 at 14:57 #7818Vladimir
KeymasterFor example, ‘manage_options’ protects the “Settings” admin menu which belongs to WordPress itself. A lot of plugins places its options pages under this menu also.
You may send stage site credentials directly to support [at-sign] role-editor.com
03/02/2022 at 15:49 #7819DanielKandora
Participantok, so that doesn’t mean that plugins suddenly stop working or something?
I just sent you the login details.
-
AuthorPosts
- You must be logged in to reply to this topic.