Hello,
normely a not admin user schould not see the options.
Humm. Maybe it’s because I gave user permission to add other users, with the code:
https://gist.github.com/ofernandolopes/b21f6362a48ba731af16c1b3a6454187
I can still hide the plugin options for users who are not administrators? Thank you.
Pleace check that the user has no capebillites from backwpup. Normly the administrator role only shuld have the capebilities.
BackWPup capebilities all prefixed with backwpup.
https://github.com/inpsyde/backwpup/blob/master/inc/class-install.php#L86-L95
No. No user other than the administrator, has these capabilities. 🙁
Thank you for listening
Can you send screenshots about that to support at backwpup dot com
Hi Daniel,
I’d like to know the answer to this as well 🙂
I gave my editors extra capabilities of adding/editing/deleting users, so I’d like to hide the BackWPup Role part from them as well.
Thanks.
Daniel,
I figured it out myself a few minutes after I posted here 🙂
I removed delete_users capability from editors and this does the trick.
Hope I got it right?
@bugnumber9, glad it is working for you. Please let us know if you need anything else. 🙂
Bumping this one since I found a more elegant way to achieve the goal.
However, the additional requirement is this: https://github.com/herewithme/wp-filters-extras/ It can be activated as a stand-alone plugin, but I simply added the code to my custom plugin.
Then it’s as simple as this:
if ( !current_user_can('update_core') ) {
remove_filters_for_anonymous_class( 'show_user_profile', 'BackWPup_Admin', 'user_profile_fields', 10 );
remove_filters_for_anonymous_class( 'edit_user_profile', 'BackWPup_Admin', 'user_profile_fields', 10 );
}
Problem solved 🙂