I’m not a developer on this plugin, but found it was pretty easy to enable email-based authentication for all user accounts using the following snippet:
<?php
add_filter('two_factor_enabled_providers_for_user', function ($enabled_providers) {
$required_providers = ['Two_Factor_Email'];
$merged = array_unique(array_merge($enabled_providers, $required_providers));
return $merged;
});
?>
Would be really cool if I could adjust for specific user roles with this filter hook, but maybe I’ll find another approach for that.