sandywp / plugins / force-first-last

Force First and Last Name as Display Name

4.3 out of 5 stars. 4.3 18 reviews

Force the user field "display_name" to be set as the user's first and last name.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.2.2 2,000+ installs WP 5.2+

your-sandbox.sandywp.com/wp-admin
Force First and Last Name as Display Name running inside a SandyWP sandbox

What you get inside

1 screen
  • Display Name field is removed from the User Profile in WordPress admin.

About this plugin

This plugin hides the “Display Name” field on the Edit Profile screen for all users. Instead of allowing users to set this field, the plugin will always set the User field display_name to their first and last name. If these field are empty, display_name will be set to their username.

Display names are set when the user registers as well as when a user’s profile is updated via the WordPress admin.

The plugin includes a batch process to update the display name for existing users. Navigate to Settings > Force First Last in the WordPress admin to run the update.

Questions

How do I update existing display names on my site?

Navigate to Settings > Force First Last to run a script that will update all existing users.

In my location, names are formatted as LAST FIRST. How do I switch the order?

You will need to use a custom filter to adjust the display order. See this code for an example: https://gist.github.com/kimcoleman/dc3227b9cebec79fa983261827df7485.

4.3

18 reviews

  • 5 ★ 14
  • 4 ★ 1
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 3

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.