Close Menu
wpexpelorwpexpelor
  • WordPress Beginner tips
  • WordPress Security
  • about us
  • contact us
Facebook X (Twitter) Instagram Pinterest
Facebook X (Twitter) Instagram Pinterest
wpexpelorwpexpelor
  • WordPress Beginner tips
  • WordPress Security
  • 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, 20232 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

2 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

Leave A Reply Cancel Reply

Trending
seo

SEO Services in texas

By NinaMay 30, 20250

Do You need to grow your business in Texas? Whether you own a company website or an online shop, you can count on us. We will get in touch as soon as possible. Please fill in the box with your name and email address.

WordPress Show Data From Database

December 12, 2023

woocommerce user registration form without email

June 9, 2024

WordPress database update required loop

April 6, 2024

Edit Author Slug in WordPress

January 30, 2024
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.