That filds are only displayed for Admins and Backup Admins.
In moment i see no way to remove tham with a liite bit of code.
Thread Starter
dazz09
(@dazz09)
thanks, but can you not put an option in the setting o display or not display the role dropdown in the users tab?
I am using the plugin on a woocommerce based site and I do not want to have this displayed at all. I know by default only gives any admin user permissions but I just want the user section to only display a users info not their backwpup roles.
I may just have to change backup plugins
Thread Starter
dazz09
(@dazz09)
Is there a function to remove them that you can supply here?
I just had the same problem. My solution is hacking using a piece of jQuery code. You have to hook it up in with admin script using “admin_enqueue_scripts”.
The jquery code is:
if ( $("body.wp-admin").hasClass('user-edit-php') ) {
var userRole = $("#role").val();
if ( "value-of-the-role=to-hide" == userRole ) {
$("h3:contains('BackWPup')").remove();
$("select#backwpup_role").closest("table").remove();
}
}
Hope this could help