Skip to content

Wordpress Multisite: Remove/Hide OpenID plugin menu #490

Answered by timnolte
s0n1kete asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@s0n1kete
Comment options

@timnolte
Comment options

@timnolte
Comment options

Answer selected by s0n1kete
@s0n1kete
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants