Title: Force First and Last Name as Display Name
Author: Andrew Lima
Published: <strong>2013 年 9 月 6 日</strong>
Last modified: 2024 年 11 月 18 日

---

搜尋外掛

![](https://ps.w.org/force-first-last/assets/banner-772x250.png?rev=3188031)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/force-first-last/assets/icon-256x256.png?rev=3188031)

# Force First and Last Name as Display Name

 由 [Andrew Lima](https://profiles.wordpress.org/andrewza/) 開發

[下載](https://downloads.wordpress.org/plugin/force-first-last.1.2.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/force-first-last/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/force-first-last/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/force-first-last/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/force-first-last/#developers)

 [技術支援](https://wordpress.org/support/plugin/force-first-last/)

## 外掛說明

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.

## 螢幕擷圖

 * [[
 * Display Name field is removed from the User Profile in WordPress admin.

## 安裝方式

#### Download, Install and Activate!

 1. Upload `force-first-last` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Visit Settings > Force First Last to run an initial update for all of your users.

## 常見問題集

### 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.

## 使用者評論

![](https://secure.gravatar.com/avatar/4052db434ab982650d5b4b61527674cb287ed637871440b1ddc8333bad5463be?
s=60&d=retro&r=g)

### 󠀁[Отлично!](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d0%be-326/)󠁿

 [Andrew](https://profiles.wordpress.org/papex/) 2023 年 9 月 4 日

То, что надо! Одной кнопкой изменяет для всех сразу отображаемое имя. Сразу навёл
порядок.

![](https://secure.gravatar.com/avatar/b732c6ac4b931013edefd032b79b3f8fab42fccea7366f9dba6c09b892bd51d1?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-36253/)󠁿

 [Lucas](https://profiles.wordpress.org/luquerias/) 2023 年 2 月 24 日

It does what it is supposed to do. Good plugin.

![](https://secure.gravatar.com/avatar/f5241a5efbdc14ccce1a2495cb77838da714827f79e8df8de2a02638043e918a?
s=60&d=retro&r=g)

### 󠀁[a must have](https://wordpress.org/support/topic/a-must-have-450/)󠁿

 [Suki](https://profiles.wordpress.org/sukinoz/) 2025 年 6 月 30 日

What is really useful is that it HIDES THE “PUBLIC DISPLAY NAME” FIELD WHEN EDITING
USER NOTE: If only the “Last name” is filled in, it takes the username.

![](https://secure.gravatar.com/avatar/2923f0e2a48c8442f0039b91aef6b21a9fc035de63daa58970b5f02514b3a955?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-32158/)󠁿

 [emarketingclusters](https://profiles.wordpress.org/emarketingclusters/) 2021 年
9 月 21 日

It works great with Wordpress 5.8.1. Thank you!

![](https://secure.gravatar.com/avatar/de3b3f769b9f7b445660fda3807f9257c56d4af62bb603f5b15b9e91627e3b1a?
s=60&d=retro&r=g)

### 󠀁[Used to work but stopped WP 5.6.1](https://wordpress.org/support/topic/used-to-work-but-stopped-wp-5-6-1/)󠁿

 [lefonk](https://profiles.wordpress.org/lefonk/) 2021 年 2 月 16 日

Unfortunately it doesn’t work with new user registrations.

![](https://secure.gravatar.com/avatar/be207795e10757acca1e624b790c5f12669e819a85fc2f15dcc08b7ee3058471?
s=60&d=retro&r=g)

### 󠀁[Still works for the most part. If you want woocommerce support do this.](https://wordpress.org/support/topic/still-works-for-the-most-part-if-you-want-woocommerce-support-do-this/)󠁿

 [hotcooler](https://profiles.wordpress.org/hotcooler/) 2020 年 4 月 6 日

Replace one hook with another Find add_action("user_register", "ffl_fix_user_display_name",
20); replace with add_action("woocommerce_created_customer", "ffl_fix_user_display_name",
20);

 [ 閱讀全部 18 則使用者評論 ](https://wordpress.org/support/plugin/force-first-last/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Force First and Last Name as Display Name〉的開發相關工作。

參與者

 *   [ Andrew Lima ](https://profiles.wordpress.org/andrewza/)

〈Force First and Last Name as Display Name〉外掛目前已有 2 個本地化語言版本。 感謝
[全部譯者](https://translate.wordpress.org/projects/wp-plugins/force-first-last/contributors)
為這個外掛做出的貢獻。

[將〈Force First and Last Name as Display Name〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/force-first-last)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/force-first-last/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/force-first-last/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/force-first-last/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/force-first-last/)。

## 變更記錄

#### 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

 * Initial version.

## 中繼資料

 *  版本 **1.2.2**
 *  最後更新 **2 年前**
 *  啟用安裝數 **2,000+**
 *  WordPress 版本需求 ** 5.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/force-first-last/)、[English (US)](https://wordpress.org/plugins/force-first-last/)、
   及 [Russian](https://ru.wordpress.org/plugins/force-first-last/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/force-first-last)
 * 標籤:
 * [display-name](https://tw.wordpress.org/plugins/tags/display-name/)[first name](https://tw.wordpress.org/plugins/tags/first-name/)
   [force](https://tw.wordpress.org/plugins/tags/force/)[last name](https://tw.wordpress.org/plugins/tags/last-name/)
   [user](https://tw.wordpress.org/plugins/tags/user/)
 *  [進階檢視](https://tw.wordpress.org/plugins/force-first-last/advanced/)

## 評分

 4.3 星，滿分為 5 星

 *  [  14 個 5 星使用者評論     ](https://wordpress.org/support/plugin/force-first-last/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/force-first-last/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/force-first-last/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/force-first-last/reviews/?filter=2)
 *  [  3 個 1 星使用者評論     ](https://wordpress.org/support/plugin/force-first-last/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/force-first-last/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/force-first-last/reviews/)

## 參與者

 *   [ Andrew Lima ](https://profiles.wordpress.org/andrewza/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/force-first-last/)