Close Menu
wpexpelorwpexpelor
  • WordPress Beginner tips
  • WordPress Security
  • Services
  • about us
  • contact us
Facebook X (Twitter) Instagram Pinterest
Facebook X (Twitter) Instagram Pinterest
wpexpelorwpexpelor
  • WordPress Beginner tips
  • WordPress Security
  • Services
  • about us
  • contact us
wpexpelorwpexpelor
Home»WordPress Beginner tips»WordPress Add User Without Email
WordPress Beginner tips

WordPress Add User Without Email

NinaBy NinaDecember 26, 2023Updated:December 26, 20233 Comments2 Mins Read
WordPress add user without email
WordPress add user without email
Share
Facebook Twitter LinkedIn Pinterest Email
5/5 - (1 vote)

The topic of wpexpelor is about WordPress add user without email. One of the common problems, when you plan to register a new user on your WordPress site as a customer (or even other roles!), is that you need an email! Here, we are going to learn how you can remove this requirement. Creating users without Email in WordPress is easy! Just follow the steps:

Create users without Email in WordPress
Create users without Email in WordPress
  1. Open the WordPress admin panel.
  2. From the display section, open the edit theme section. 
  3. Open the “functions.php” file to edit in this step. (It is recommended to use a Child theme for consistent results.)
  4. Add the following code at the end of the “functions.php” file and click on save.
// This will suppress empty email errors when submitting the user form
add_action('user_profile_update_errors', 'my_user_profile_update_errors', 10, 3 );
function my_user_profile_update_errors($errors, $update, $user) {
    $errors->remove('empty_email');
}

// This will remove javascript required validation for email input
// It will also remove the '(required)' text in the label
// Works for new user, user profile and edit user forms
add_action('user_new_form', 'my_user_new_form', 10, 1);
add_action('show_user_profile', 'my_user_new_form', 10, 1);
add_action('edit_user_profile', 'my_user_new_form', 10, 1);
function my_user_new_form($form_type) {
    ?>
    <script type="text/javascript">
        jQuery('#email').closest('tr').removeClass('form-required').find('.description').remove();
        // Uncheck send new user email option by default
        <?php if (isset($form_type) && $form_type === 'add-new-user') : ?>
            jQuery('#send_user_notification').removeAttr('checked');
        <?php endif; ?>
    </script>
    <?php
}

Now, just go to the user section and add a new user.

You can create new users by just entering the username and password.

WooCommerce user registration form without email
WooCommerce user registration form without email has just the same procedure

You don’t need an email to register a user. WooCommerce user registration form without email has the same procedure.

wpexpelor WordPress add user without email
wpexpelor WordPress add user without email

Note: By deleting the email field, users will not be able to restore their account by email when they forget the password.

Best. Please comment on any questions below.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit VKontakte Telegram WhatsApp
Previous ArticleHow To Turn On xml-rpc In WordPress
Next Article How To Change Position Of Featured Image In WordPress

Related Posts

woocommerce user registration form without email

June 9, 2024

Edit Author Slug in WordPress

January 30, 2024

install 2 wordpress on same domain

January 23, 2024

3 Comments

  1. Harold Keskey on March 16, 2024 1:33 pm

    It’s remarkable to pay a quick visit this
    web page and reading the views of all mates concerning this paragraph, while I am also eager of getting know-how.

    Reply
  2. Kathleen Allan on March 19, 2024 6:54 am

    I am sure this piece of writing has touched all the
    internet people, its really really pleasant post on building up new
    weblog.

    Reply
  3. Max on June 30, 2025 5:57 am

    thanks for your great description for the problem… need more reliable wordpress tips…

    Reply

Leave A Reply Cancel Reply

Trending
WordPress Beginner tips

woocommerce user registration form without email

By NinaJune 9, 20240

Woocommerce user registration form without email? Is it possible? Customers demand easy ways to buy…

WordPress Reset Password Via Database

December 14, 2023

Running honeypot in the WordPress

September 7, 2023

E-Commerce Seo Services in Austin

July 7, 2025

pingbacks and trackbacks

July 4, 2025
Social
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
Facebook X (Twitter) Instagram Pinterest
©2025 WPexpelor. All Rights Reserved.

Type above and press Enter to search. Press Esc to cancel.