Title: Users without emails
Last modified: March 8, 2021

---

# Users without emails

 *  Resolved [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/)
 * Hello, first of all, thank you for your plugin!
 * It has been working perfectly, but I disabled emails for all users and error 
   messages show up in red saying “Invalid email address” (although it does insert
   the users).
 * How to disable those warnings and make emails non-mandatory?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/users-without-emails/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/users-without-emails/page/2/?output_format=md)

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14153806)
 * [@moacirsantana](https://wordpress.org/support/users/moacirsantana/),
 * Emails are required on WordPress. How are you making it not required?
 *  Thread Starter [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14154111)
 * There are a few codes to disable emails and make the non-mandatory.
 * How could I disable mandatory emails in your plugin?
 * It inserts the user although it shows that red “invalid email” message.
 * You could guide on how to do that, then everything will be perfect.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14154225)
 * > There are a few codes to disable emails and make the non-mandatory.
 * This is an official plugin? Or are you changing the WordPress core code?
 *  Thread Starter [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14154415)
 * I think you can find plugins, but I used some scripts in the functions.php
 * So there must be a piece of code in your plugin where you check and make the “
   email” column mandatory, I just would like to know how to stop that, then everything
   will work just fine.
 * That’d be all.
 * Thank you.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14154513)
 * [@moacirsantana](https://wordpress.org/support/users/moacirsantana/),
 * Sorry but I cannot do it. I will solve your problem and I will create problems
   in thousends of other users.
 * If you tell me “this plugin allows me to do it”, I can check if this plugin is
   activated and make it not required.
 * This would be the correct solution.
 *  Thread Starter [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14154578)
 * Don’t worry I’m not asking for you to change the plugin itself, just to show 
   me a line in your plugin where emails are mandatory, or a specific function to
   make it non-mandatory when checking the “email” column, something like that.
 * Because somewhere in your plugin you do it.
 * I’d be grateful. Thanks.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14154597)
 * [@moacirsantana](https://wordpress.org/support/users/moacirsantana/),
 * Yes but you cannot change the plugin code because when we will update (we do 
   really often) you would lose this change.
 * So the solution I told you is the best for you.
 *  Thread Starter [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14155034)
 * Ok, got it, I will turn the script that I use into a plugin, the name will be:**
   Users Without E-mail**
 * how to proceed?
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14156482)
 * Sorry I cannot find this plugin in the repository.
 *  Thread Starter [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14157577)
 * No, I will create it for myself for this specific case, the name will be **Users
   Without E-mail**
 * You said that your condition would be “if plugin exists, make emails non-required”
 * So, this is the name of the plugin that will be activated to make emails non-
   mandatory.
 * So that you can create this condition, you wouldn’t need the plugin, only its
   name.
 * Got it?
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14157589)
 * No, I need to install this plugin in our test site.
 * We cannot do an addon for a non-existent plugin.
 * Tell me where can I find this plugin in the repository and if it does not exists,
   you can upload it to the repository.
 *  Thread Starter [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14166891)
 * Ok, I will create the plugin and provide you so you can test! Thank you.
 * I’ll come back in a few days.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14168117)
 * Great 🙂
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14168119)
 * I have just set it as solved, but when you have it available, let me know.
 *  Thread Starter [moacirsantana](https://wordpress.org/support/users/moacirsantana/)
 * (@moacirsantana)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/users-without-emails/#post-14190203)
 * Hello again!
 * Here’s the plugin that makes emails a non-required field.
 * It’s a very lightweight plugin, less than 1kb, you can download it here:
 * [https://www.c4publicidade.com.br/users-without-email-nhc.rar](https://www.c4publicidade.com.br/users-without-email-nhc.rar)
 * Thank you for your help!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/users-without-emails/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/users-without-emails/page/2/?output_format=md)

The topic ‘Users without emails’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/users-without-emails/page/2/#post-14190627)
 * Status: resolved