Force First and Last Name as Display Name

plugin banner

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:Stranger Studios (profile at wordpress.org)
WordPress version required:5.2
WordPress version tested:6.5.2
Plugin version:1.2.1
Added to WordPress repository:06-09-2013
Last updated:15-04-2024
Rating, %:86
Rated by:18
Plugin URI:https://www.strangerstudios.com/wordpress-plu...
Total downloads:25 437
Active installs:2 000+
plugin download
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.

Paid Memberships Pro Compatibility

This plugin is now compatible with Paid Memberships Pro. The “Display Name” field is hidden from the frontend Member Profile Edit page. Display Name is automatically set when this form is saved. Display Name will also be updated at membership checkout if you are capturing the member’s first and last name via a Register Helper field or when using the Add Name to Checkout Add On.


Screenshots
FAQ
ChangeLog