
The display name dropdown is hidden from users. Instead, it is always set to their first and last name, or username if those fields are empty.
Display names are updated at registration or when a user profile is updated. To update existing users, visit Settings –> Force First Last and click on the link to run an initial update on your users.
On GitHub: https://github.com/strangerstudios/force-first-last
| Author: | Andrew Lima (profile at wordpress.org) |
| WordPress version required: | 5.2 |
| WordPress version tested: | 6.7.5 |
| Plugin version: | 1.2.2 |
| Added to WordPress repository: | 06-09-2013 |
| Last updated: | 18-11-2024 |
| Rating, %: | 86 |
| Rated by: | 18 |
| Plugin URI: | |
| Total downloads: | 32 487 |
| Active installs: | 2 000+ |

Click to start download
|
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.
Screenshots

Display Name field is removed from the User Profile in WordPress admin.
FAQ
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.
ChangeLog
1.2.2 – 2024-11-13
- ENHANCEMENT: Update tested up to WordPress 6.7.
- ENHANCEMENT: Preparing plugin to be transferred.
1.2.1 – 2023-03-14
- SECURITY: Added nonce to bulk “Update Existing Users” admin page to protect from CSRF vulnerability. (Thanks, @mikhail-net)
1.2 – 2021-03-12
- ENHANCEMENT: Added
ffl_display_name_order filter to allow custom code to change display name to last first.
- ENHANCEMENT: Tested up to WordPress 5.7.
1.1 – 2020-08-13
- ENHANCEMENT: Adding support for the Paid Memberships Pro frontend member profile edit screen.
- ENHANCEMENT: Improving the settings page appearance.
- ENHANCEMENT: Tested up to WordPress 5.5.
- ENHANCEMENT: Added pmpro_ffl_hide_display_name_profile filter. Set to return false if you’d like the display name field to show up on the edit user page in the WP dashboard.
1.0
- Change priority of the user_register hook to 20 so it will run after plugins setting first/last name etc.
- Let’s call this official at 1.0
.2
- Added settings page to update existing users.
- Hiding display name dropdown on profile page.
.1