Two factor authentication doesn’t work for some users

[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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer