-
Hello, I would like to know if it is possible to hide the plugin in the wordpress menu and only make it visible to super administrators. I have been trying with remove_submenu_page and remove_menu_page but I don't know what would be the slug that I should put. Thanks you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@s0n1kete I thought I had replied here but this will most likely need some development to add a new capability that can be used. You can find the slug easily enough in the code, it is a constant defined in the plugin code. |
Beta Was this translation helpful? Give feedback.
@s0n1kete you'll find the name of the settings page here:
https://github.com/oidc-wp/openid-connect-generic/blob/dev/includes/openid-connect-generic-settings-page.php#L49
The call to add the page is here: https://github.com/oidc-wp/openid-connect-generic/blob/dev/includes/openid-connect-generic-settings-page.php#L107
So if you want to remove the page for a certain role you'll just need to make sure your call happens later than the call where the settings page is added.