Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alundgren

    (@alundgren)

    I figured this out. All I was missing was adding a line of code to the modal-login.js:

    ‘zip’: $(‘#form #zip’).val()

    Phew!

    Thanks for the plugin. Of course, now I’ve mangled it and won’t be able to do updates. ??

    I was able to implement this by making a change in the plugin file /includes/modal-login-class.php.

    I changed this:
    $errors = new WP_Error();
    $sanitized_user_login = sanitize_user( $user_login );
    $user_email = apply_filters( ‘user_registration_email’, $user_email );

    to:
    $errors = new WP_Error();
    $user_email = apply_filters( ‘user_registration_email’, $user_email );
    $user_login = $user_email;
    $sanitized_user_login = sanitize_user( $user_login );

    Then I hid the username field using CSS display: none.

    p.s. I in no way recommend using my suggestion as I am a hobby-hack programmer and am probably breaking things. Also, you will have to make this change again if there is an update to the plugin. It does seem to be working for my users though. ??

Viewing 2 replies - 1 through 2 (of 2 total)