Hi David, the wp_login_form() function allows you to add a login form to your page template, useful if you want to build a custom login page.
<?php $args = array(
'echo' => true,
'redirect' => 'https://yoursite.com',
'form_id' => 'loginform',
'label_username' => __( 'Username' ),
'label_password' => __( 'Password' ),
'label_remember' => __( 'Remember Me' ),
'label_log_in' => __( 'Log In' ),
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
'id_submit' => 'wp-submit',
'remember' => true,
'value_username' => NULL,
'value_remember' => false
);
wp_login_form($args);
?>
I was assuming that as this follows the wordpress login protools it would work with the 2FA plugin. It seems that it does not and was wondering if you had any thoughts on how to get it display the 2FA input fields without it redirecting to wp-login.php with an authentication error. Is there an extra argument I can pass or a filter I can add to get it to recognize the plugin?
Thanks.