sandywp / plugins / force-first-last
Force First and Last Name as Display Name
Force the user field "display_name" to be set as the user's first and last name.
Ready in seconds.
v1.2.2 2,000+ installs WP 5.2+

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.
sandywp / also on the shelf
Try another plugin
4.3 · 40K+ installs
Unlock the power to change WordPress usernames with complete security and data integrity.
10+ installs
Easily change a WordPress Username, save time, increase security.
-
Change WordPress usernames with optimal security and data integrity.
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.