Enable or Disable for selected users or roles
-
We use version 1.0.4 of your plugin and works great. Thank you.
We have a persisting “client” (school principal) who is given a trimmed down admin role (Principal), missing the update_plugins capability.
We also have a customization plugin bearing custom coding enabled for the site.
Could we make use of some custom code e.g.global $user_login; get_currentuserinfo(); if (!current_user_can('update_plugins')) { // checks to see if current user can update plugins SOME CODE HERE }
so as to have the plugin enabled just for her or her role (other persisting teachers)
OR
have certain users/roles excluded (ourselves do need access to the customizer) from the plugin?It would be great help if you could point us to the right direction.
- The topic ‘Enable or Disable for selected users or roles’ is closed to new replies.