[ad_1]
Hello @mattheo
By default, the 2FA feature is applied only for the Admin and Editor user roles.
If you would like to use this feature for additional roles, we have prepared a filter that you can add under your theme’s functions.php file. You can observe the filter here:
add_filter( 'sg_security_2fa_roles', 'add_user_roles_to_2fa' );
function add_user_roles_to_2fa( $roles ) {
$roles[] = 'your_role';
return $roles;
}You can add additional fields if you would like more roles to be protected. You just need to substitute “your_role” with the exact user role that you would like to use.
Best regards,
Georgi Ganchev
Technical Support
