Support » Plugin: Import and export users and customers » empty email field

  • Resolved pooryamd


    I do not need any E-Mails for most of my users and I want to import users with empty emails but test import returns “Errors, warnings and notices found” and “Email not specified”
    How do I disable this check.
    (I want to disable empty email error but if the field is not empty, emails should be imported.)

    P.S: WordPress allows registering users without E-mail.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Javier Carazo



    How does WordPress allow registering user without email?

    Thread Starter pooryamd


    Using WordPress API, E-mail field is not mandatory in Functions wp_insert_user and wp_update_user. So, the API let us insert/update user W/O E-mail!
    I’m already adding users in WP admin “add user” page, W/O E-mail just by disabling HTML property “Required” of E-mail field using JS snipets, but you are requiring Emails in code, and I don’t want to manipulate plugin files!

    Plugin Author Javier Carazo


    Yes, but this is a bad practice.

    just by disabling HTML property “Required” of E-mail field using JS snipets

    This is not a good practice.

    WordPress core team requires a new user to have an email and we also ask for an email.

    You can always use fake emails to avoid this problem.

    I have the same problem too, as I’m working on a project that almost every users in the database don’t have emails.

    According to WordPress’ documentation, wp_create_user ( also let’s you insert users without e-mail, as it is an optional parameter.

    All we need to be able to do is to setup a unique username and a password.

    Plugin Author Javier Carazo


    Yes, you can use fake emails for this.

    Currently we cannot change something like this, when WordPress do not allow you (as an user) to do it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘empty email field’ is closed to new replies.