• Resolved step64

    (@step64)


    Hi all,
    I’ve been asked to use different field for login process; specifically, I need the EMAIL field instead of USER NAME.
    Where do I modify default plugin setup?

    I also need to add an extra field in the REGISTRATION process: where to look at in order to fullfill this request as well?

    Thanks for helping this out,
    Stefano

    https://ww.wp.xz.cn/plugins/zm-ajax-login-register/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Zane Matthew

    (@zanematthew)

    Hi Stepfano,

    Using a different field for the login process isn’t possible without greatly changing the core plugin, and its not recommended to use the email for login, as WordPress publically displays the email in the urls, i.e., mysite.com/authors/[email protected] would be displayed.

    Adding an additional field to the registration process takes two hooks. 1. to add the field, the other to update the field once a successful registration happens.

    1. Adding the form fields – Use the hook zm_ajax_login_register_below_email_field, its found in the code here.

    2. Doing something after user has registered – You can use the hook zm_ajax_login_after_successfull_registration, which returns the user id that was just added, and from there you can update user meta as needed.

    Let me know if that helps. Or if you need additional hooks.

    Plugin Author Zane Matthew

    (@zanematthew)

    Hi,

    I’m closing this due to inactivity.

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

The topic ‘Change required login fields’ is closed to new replies.