Title: User ID
Author: Aditya Shah
Published: <strong>2018 年 11 月 30 日</strong>
Last modified: 2026 年 3 月 16 日

---

搜尋外掛

![](https://ps.w.org/user-id/assets/icon-256x256.png?rev=3483425)

# User ID

 由 [Aditya Shah](https://profiles.wordpress.org/ethicaladitya/) 開發

[下載](https://downloads.wordpress.org/plugin/user-id.2.0.0.zip)

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

 [技術支援](https://wordpress.org/support/plugin/user-id/)

## 外掛說明

User ID has evolved from a simple column displaying user IDs into the **most comprehensive
Support and Debug Toolkit** for WordPress available. Whether you are a site administrator,
support staff, or developer, this plugin equips you with everything needed to inspect,
track, impersonate, and debug WordPress users efficiently.

While preserving the core lightweight “User ID” column in the Users table and the`[
user-id]` shortcode for complete backward compatibility, the 2.0.0 update introduces
powerful, modular features designed to supercharge your WordPress user management
workflow.

### Core Features

 * **User ID Column**: Instantly see and copy User IDs directly from the WordPress
   Users table. Stop searching for ways to find WordPress user IDs.
 * **Deep User Search**: Stop relying on basic wp-admin search. Our advanced search
   interface is capable of searching users by ID, email, username, and even hidden
   user meta values inside the `wp_usermeta` table.
 * **WordPress User Inspector**: A detailed view of any user account exhibiting 
   basic information, a full list of their capabilities, and a raw User Meta table
   viewer to debug exactly what custom fields a user has attached.
 * **Secure User Impersonation**: Need to test what a specific user is experiencing?
   Securely log in as any user (impersonate user) with a single click, without needing
   their password. Includes a persistent return-to-admin button and logs the action
   for security.
 * **User Activity Log & Login Tracker**: Keep track of user history. View log entries
   of when users log in, log out, update their profiles, or change passwords. View
   the last 10 logins directly on their User Debug pane.
 * **Support Mode**: An optional setting that enables a quick-access “User Debug”
   dropdown in the WordPress Admin Bar, improving support agent efficiency.

### Developer Extensibility

 * **WP-CLI Support**: Use `wp user-id inspect <id>` to instantly retrieve user 
   data and capabilities from the command line without opening the dashboard.
 * **REST API Endpoints**: Integrates seamlessly with the wp-json endpoints via `/
   wp-json/user-id/v1/inspect/<id>`.
 * **Filters & Actions**: Leverage hooks like `user_id_activity` and `apply_filters('
   user_id_meta_keys')` to extend the toolkit tracker functionality with your own
   custom events.

## 安裝方式

 1. Upload the `user-id` directory to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Access the toolkit under **Tools → User Debug**, or enable **Support Mode** via
    Settings → User ID.

## 常見問題集

### Does the old [user-id] shortcode still work?

Yes! Backward compatibility is guaranteed. The shortcode `[user-id]` will continue
to display the currently logged-in user’s ID as it always has.

### How do I search by user meta?

Navigate to Tools → User Debug. Use the **Deep User Search** box and simply enter
the meta value you’re looking for. The system will search standard fields first,
and if nothing is found, it will deep-dive into the usermeta table.

### Is impersonation secure?

Yes. Only users with `manage_options` (typically Administrators) can use the impersonation
feature. Super Admins on Multisite and other Administrators cannot be impersonated
to prevent privilege escalation.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈User ID〉的開發相關工作。

參與者

 *   [ Aditya Shah ](https://profiles.wordpress.org/ethicaladitya/)

[將〈User ID〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/user-id)

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

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

## 變更記錄

#### 2.0.0

 * Major Feature Update: The plugin has been completely rewritten into an OOP architecture.
 * Feature: User Inspector & Deep User Search added under Tools -> User Debug.
 * Feature: Secure User Impersonation with quick ‘Return to Admin’ button.
 * Feature: Login History and Activity Tracking tables added.
 * Feature: WP-CLI and REST API support added.
 * Enhancement: Added copy-to-clipboard functionality for the User ID column.
 * Enhancement: Added User ID to the User Profile edit screens.

#### 1.0

 * Initial Release. Shows user ID in front-end using shortcode. Displays User ID
   in Admin Panel.

## 中繼資料

 *  版本 **2.0.0**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 8.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/user-id/)
 * 標籤:
 * [Activity Log](https://tw.wordpress.org/plugins/tags/activity-log/)[debug](https://tw.wordpress.org/plugins/tags/debug/)
   [developer-tools](https://tw.wordpress.org/plugins/tags/developer-tools/)[user id](https://tw.wordpress.org/plugins/tags/user-id/)
 *  [進階檢視](https://tw.wordpress.org/plugins/user-id/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/user-id/reviews/#new-post)

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

## 參與者

 *   [ Aditya Shah ](https://profiles.wordpress.org/ethicaladitya/)

## 技術支援

最近 2 個月解決的問題:

     總計 1 個問題，已解決 0 個

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

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://theadityashah.com)