Black Friday 40% off yearly and lifetime plans · 18d left Ends in 18d09h24m Claim 40% off
WooCommerce50 docs

How to Remove the Display Name Field from the Account Form

Remove the display name field from the WooCommerce account details form so customers cannot edit it there. Simplify the form with a Classic Monks toggle.

By Founder & Lead Developer

Last updated

2 minutes

Key takeaways

  • Remove the display name field from the account settings form
  • Drop the field from required account fields
  • One toggle, no nested options
  • Existing display names stay intact
  • Admin user editing still manages the display name

What Does the Feature Do?

The WooCommerce account settings form includes a display name field where customers choose how their name appears. The Remove Display Name from Account Settings feature removes that field from the account form and from the required account fields.

Existing display names already set are preserved. Customs cannot edit the display name in the account area, but admins can still change it from the WordPress user editing screen.

Why You Need It

The display name field is often unnecessary:

  • Few customers change their display name on the account page
  • Removing it shortens the account form
  • It reduces editing choices for stores that manage names centrally
  • Admins can still correct a display name in the user screen

How to Remove the Display Name Field from the WooCommerce Account

  1. Step 1

    Enable the Feature

    1. In WordPress admin, open Classic Monks > WooCommerce.
    2. Open the My Account settings area.
    3. Toggle on Remove Display Name from Account Settings.

    WooCommerce My Account settings

  2. Step 2

    Save and Test

    Click Save Changes. Log in as a customer and open My Account > Account Details. The display name field should no longer appear.

Configuration Options

Option Default
Remove Display Name from Account Settings Off

There are no nested options. The feature is a single on/off control.

What Gets Affected

  • The customer account details form: the display name field is removed
  • The required account fields: the display name is dropped

What Does NOT Get Affected

  • Existing display names: preserved in the database
  • The WordPress admin user edit screen: still shows and manages the display name
  • Usernames and other account fields: unchanged
  • Reviews and comments: these keep using the display name as they always have

Advanced Options (Developers)

The feature registers hooks in functions/woocommerce/woocommerce-functions.php:

add_filter( 'woocommerce_save_account_details_required_fields', 'cm_remove_woocommerce_display_name_option' );
add_filter( 'woocommerce_edit_account_form', 'cm_remove_woocommerce_display_name_option' );
add_action( 'woocommerce_edit_account_form', 'cm_hide_display_name_in_account_form' );
  • woocommerce_save_account_details_required_fields and woocommerce_edit_account_form call cm_remove_woocommerce_display_name_option(), which unsets account_display_name so the field is not processed or rendered as required.
  • woocommerce_edit_account_form also runs cm_hide_display_name_in_account_form(), which hides the field’s row in the rendered form.

Common Use Cases

Simpler account form. Stores that manage names server-side remove the field to shorten the form.

Centralized naming. Teams that control how names appear prefer that customers not edit the display name.

Cleaner profile UX. Removing an rarely-used field keeps the account settings focused.

Frequently asked questions

Does this delete display names?

No. Existing display names are preserved. The field is only removed from the customer account form.

Can I still change a display name?

Admins can change it through the WordPress user edit screen. Customers can no longer edit it in the account details form.

Is it different from the username?

Yes. The username is the login name and is unchanged. This feature removes the display name field, which controls how a name appears publicly.

Does it affect reviews and comments?

The stored display name continues to be used in reviews and comments. The feature only stops customers from editing it in the account form.

Troubleshooting

3 problems and how to fix each one.

The display name field is still showing

Cause: The toggle is off, or a theme re-renders the account form.Fix: Confirm the toggle is on and clear caches. If a theme builds the account form independently, it may render the field from its own markup.

The display name disappeared but shows on comments

Cause: The feature removes the editable field and required status, but the stored display name is still used where WooCommerce displays it.Fix: This is expected. The stored value keeps being used for display; the customer simply cannot edit it in the account form.

Admins can still change the name

Cause: The admin user edit screen is separate from the customer account form.Fix: This is by design. Admins change display names in the WordPress user profile screen.

Was this doc helpful?

Your answer tells us which docs to fix first.

Still stuck? Ask on the forum or email help@classicmonks.com.
Joy Chetry
Written by the person who built it

Joy Chetry

Founder & Lead Developer, Classic Monks

Joy is the founder of Classic Monks and GoodMonks Solutions, a web development agency that builds WordPress and WooCommerce sites for clients. Classic Monks grew out of the agency's own need to consolidate 20 to 30 separate plugins into one core stack.

Follow this doc on a real site.

Open a private WordPress site with Classic Monks, WooCommerce and Bricks Builder installed, and follow this doc step by step. Free for 24 hours, no card.

280 docs, written by Joy Chetry 15 day refund window