Force First and Last Name as Display Name source code

By Andrew Lima, on WordPress.org since 2013. 2,000+ active installs.

Browse code Download zip

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. Below is its source code for every one of its 6 releases, what changed in the latest one, and how often it ships.

What changed in 1.2.2

Released Jul 21, 2026, 2 years after 1.2.1
  • ENHANCEMENT: Update tested up to WordPress 6.7.
  • ENHANCEMENT: Preparing plugin to be transferred.

7 files changed since 1.2.1: 3 modified, 2 added, 2 removed.

Compare 1.2.1 with 1.2.2

Release history

6 releases since September 2013
  1. 1.2.2 Jul 21, 2026 ENHANCEMENT: Update tested up to WordPress 6.7.
  2. 1.2.1 Apr 15, 2024 SECURITY: Added nonce to bulk “Update Existing Users” admin page to protect from CSRF vulnerability. (Thanks, @mikhail-net)
  3. 1.2 Nov 1, 2022 ENHANCEMENT: Added ffl_display_name_order filter to allow custom code to change display name to last first.
  4. 1.1 Aug 13, 2020 ENHANCEMENT: Adding support for the Paid Memberships Pro frontend member profile edit screen.
  5. 1.0 Aug 9, 2019 Change priority of the user_register hook to 20 so it will run after plugins setting first/last name etc.
Full Force First and Last Name as Display Name changelog with diffs

Source of 1.2.2

5 files
Browse all Force First and Last Name as Display Name 1.2.2 files Browse trunk