Force First and Last Name as Display Name
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 a
About this tool.
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.
A closer look.
Getting started.
Download, Install and Activate!
- 01Upload force-first-last to the /wp-content/plugins/ directory.
- 02Activate the plugin through the ‘Plugins’ menu in WordPress.
- 03Visit Settings > Force First Last to run an initial update for all of your users.
Frequently asked 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.