Reserve Your Free Seat for Our Next WooCommerce Class! Search
Business Bloomer
  • Business Bloomer Club
  • WooCommerce Plugins
  • WooCommerce Tips
  • Log In
  • 0
  • Business Bloomer Club
  • WooCommerce Plugins
  • WooCommerce Tips
  • Log In
  • Search
  • Contact
  • Cart
WooCommerce Bites My Account

WooCommerce automatically created username problem

Last Revised: Oct 2024

STAY UPDATED

I’ve just spotted that when WooCommerce registers users by autocreating the username (and thus the nickname), sometimes randomly it uses all of the user’s email address in the username and nickname by setting the nickname to eg. first-lasthotmail-com. Most of the time it does the job properly but it’s actually quite a serious problem when using BuddyBoss because it leaks personal data since the nickname is pretty visible in BuddyBoss.

Has anyone else seen this and do you have better ideas of what to do about it? As a temporary measure I’ve had to turn off “When creating an account, automatically generate an account username for the customer based on their name, surname or email” so customers have to choose their own username. This is a little bit of friction I’d rather not have.

Related content

  • WooCommerce: Separate Login, Registration, My Account Pages
    There are times when you need to send logged out customers to a Login page and unregistered customers to a standalone Register page. As you…
  • WooCommerce: Add New Tab @ My Account Page
    One of the features of Business Bloomer Club is the provision of Premium WooCommerce Q&A Support to supporters who enroll. So, how to add an…
  • WooCommerce: How To Make A Website GDPR Compliant? (12 Steps)
    Ok, we all know that the EU General Data Protection Regulation (GDPR) will come into force on the 25th May 2018. So the main question…
  • WooCommerce Visual Hook Guide: My Account Pages
    Hey WooCustomizers, the Visual Hook Guide is back 🙂 In this episode, I’ve created a visual HTML hook guide for the WooCommerce Account Pages (there…
  • WooCommerce: Add First & Last Name to My Account Register Form
    Here’s yet another useful PHP snippet – and a mini-plugin alternative with super simple settings – that adds the Billing First Name and Billing Last…

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

3 thoughts on “WooCommerce automatically created username problem”

  1. Chris
    January 11, 2025

    Thanks. In the end I got an AI to produce code to create a nickname based on first name and first letter of last name, which seems to work. I can’t paste it here as cloudflare didn’t like it.

    Reply
    1. Rodolfo Melogli
      January 18, 2025

      Excellent!

      Reply
  2. Rodolfo Melogli
    September 23, 2023

    Took a look at WooCommerce core, and the customer username creation function comes with a filter that should let you alter the username hopefully:

    apply_filters( 'woocommerce_new_customer_username', $username, $email, $new_user_args, $suffix );
    Reply
Reply Cancel reply

Your email address will not be published. Required fields are marked *


Search WooCommerce Tips

Popular Searches: Visual Hook Guides - Checkout Page - Cart Page - Single Product Page - Add to Cart - Emails - Shipping - Prices - Hosting

Recent Articles

  • WooCommerce: How to Stop Spam Orders on Free Products
  • WooCommerce: How to Configure Product and Order Sync
  • WooCommerce: “Beautify” Item Meta in Order Emails
  • WooCommerce: Per-Product Checkout Fees / Tariffs
  • WooCommerce: Auto-Cancel Orders After 3 Failed Payments

Latest Comments

  1. Rodolfo Melogli on WooCommerce Visual Hook Guide: Checkout Page
  2. Rodolfo Melogli on WooCommerce: Prevent Duplicate Orders
  3. Rodolfo Melogli on WooCommerce: Hide Checkout Fields if Virtual Product @ Cart

Find Out More

  • Become a WooCommerce Expert
  • Business Bloomer Club
  • WooCommerce Blog
  • WooCommerce Weekly
  • Contact

Contact Info

Ciao! I'm Rodolfo Melogli, an Italian Civil Engineer who has turned into an international WooCommerce expert. You can contact me here:

Twitter: @rmelogli

Get in touch: Contact Page

Business Bloomer © 2011-2025 - VAT IT02722220817 - Terms of Use - Privacy Policy

Cart reminder?

x