Hiding theme options by user role

I have tried many a different ways to do this, but maybe you can help. Does the X theme offer a hook or filter that will allow me to hide the theme options, or the general WP customizer, based on user role(s)?

Likewise, is there a function available where these can be disabled by user role?

Thanks.

Hello @5foldmarketing,

Thanks for asking. :slight_smile:

Unfortunately, as of now we don’t have a feature to hide Theme Options panel based on user role.

Thanks for understanding.

No problem, thanks for replying.

You are most welcome. :slight_smile:

Just another thought, would it be feasible to set up a redirect so that if someone hits https://site.test/pro/#/options they can be redirected to another page? Or are you aware of any code within the theme that would prevent this from working?

Hi there,

That’s not currently possible since it’s a custom URL controlled by javascript, so the only way for redirect is in javascript too. The coming new update may have more advanced option for user roles, maybe that would help restricting access to some features.

Thanks!

Ok, thanks.

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.