• Resolved fatcacky

    (@fatcacky)


    Hi,

    Can you please advise if the Two-factor Authentication for Admin & Editors Users feature in the plugin also applies to WooCommerce accounts set up as Shop Manager?

    As far as I can tell the rights of Shop Manager seem to lie somewhere between Editor and Administrator.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support kuzmanstoyanov

    (@kuzmanstoyanov)

    Hello @fatcacky ,?

    By default, only Editor and Administrator roles are included in the Two-factor Authentication. 

    There is a special filter you can use to force other user roles to use the feature.

    In this particular case, you should add the following filter in the functions.php of your active theme:

    add_filter( 'sg_security_2fa_roles', 'add_user_roles_to_2fa' );
    function add_user_roles_to_2fa( $roles ) {
    	$roles[] = 'shop_manager';
    	return $roles;
    }

    Best Regards,
    Kuzman Stoyanov

Viewing 1 replies (of 1 total)
  • The topic ‘Does Two-factor Authentication Also Apply to WooCommerce Account Types’ is closed to new replies.