• Resolved wjboyz

    (@wjboyz)


    is there a way to enable all user for email 2fa..
    for now i have 500++ user i have to enable one by one.. its very time consuming.
    when new user register i need to manually enable it.

Viewing 1 replies (of 1 total)
  • The plugin has a filter hook where you can force email on all accounts, add this to your functions.php file:

    // Force email as the only two-factor provider for all users
    add_filter( 'two_factor_enabled_providers_for_user', function( $enabled_providers, $user_id ) {
    return array( 'Two_Factor_Email' );
    }, 10, 2 );
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.