• Newer versions of WordPress (starting from v4.5 as far as I remember) allow users to login with their email address in place of their user name.

    It would be nice if this plug-in could check the WordPress version number und adapt the label of the login form (“Username” – “Email or username”).

Viewing 1 replies (of 1 total)
  • function my_changein_args ($my_form_args) {
    return array(
    ‘echo’ => true,
    // ‘redirect’ => esc_url( apply_filters( ‘sidebar_login_widget_login_redirect’, $redirect ) ),
    ‘label_username’ => __( ‘Username or Email’, ‘sidebar-login’ ),
    // ‘label_password’ => __( ‘Password’, ‘sidebar-login’ ),
    // ‘label_remember’ => __( ‘Yourrememberlabel’, ‘sidebar-login’ ),
    // ‘label_log_in’ => __( ‘Yourloginlabel’, ‘sidebar-login’ ),
    // ‘remember’ => $show_rememberme,
    ‘value_remember’ => true
    );
    }
    add_filter( ‘sidebar_login_widget_form_args’, ‘my_changein_args’ );

    • This reply was modified 7 years, 5 months ago by bswarnock.
Viewing 1 replies (of 1 total)
  • The topic ‘Login with email in place of username’ is closed to new replies.