Title: WP Author Slug
Author: Konstantin Obenland
Published: <strong>2011 年 2 月 21 日</strong>
Last modified: 2025 年 9 月 9 日

---

搜索插件

![](https://ps.w.org/wp-author-slug/assets/banner-772x250.jpg?rev=2814859)

![](https://s.w.org/plugins/geopattern-icon/wp-author-slug_2b292a.svg)

# WP Author Slug

 作者：[Konstantin Obenland](https://profiles.wordpress.org/obenland/)

[下载](https://downloads.wordpress.org/plugin/wp-author-slug.5.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-author-slug/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-author-slug/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-author-slug/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-author-slug/#developers)

 [支持](https://wordpress.org/support/plugin/wp-author-slug/)

## 描述

This plugin replaces the author slug with a sanitized version of the user’s display
name.

This plugin will not prevent hackers from finding out your login name but the login
name won’t be visible
 in the author archive’s URL, which works towards your friendly
URLs with using your display name.

DO NOT use this on a site with more than 1000 registered users, as updating all 
of their nicenames at once might break your site.

## 安装

 1. Download WP Author Slug.
 2. Unzip the folder into the `/wp-content/plugins/` directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 评价

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

### 󠀁[Don’t use if you have a large user database](https://wordpress.org/support/topic/dont-use-if-you-have-a-large-user-database/)󠁿

 [Peter](https://profiles.wordpress.org/petergerard/) 2021 年 7 月 6 日 1 回复

This plugin would probably work OK if you have a small number of users (e.g. if 
your site doesn’t allow public login). But if you have a large number of users (
e.g. if you are running ecommerce or allow users to register for other reasons),
this plugin will probably take down your site. The reason is that there are hooks
that run when you activate or delete the plugin. It runs database fetch and update
queries on every user in your database, all in-line on the request (rather than 
background via a cron). So if you have a thousand or more users it attempts to do
a thousand or more database writes when you click Activate or Delete from the plugins
list. This will likely grind your website to a halt. It would be better/useable 
if you could either choose to only apply these scripts to specific user types (e.
g. Author) or if you could run the update in batches in the background.

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

### 󠀁[Does the job](https://wordpress.org/support/topic/does-not-work-anymore-42/)󠁿

 [cool_recep](https://profiles.wordpress.org/cool_recep/) 2020 年 11 月 6 日 2 回复

Errors are fixed.

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

### 󠀁[Good one!](https://wordpress.org/support/topic/good-one-376/)󠁿

 [Husgrove](https://profiles.wordpress.org/gasparhusgrove/) 2019 年 6 月 23 日

Works as expected, recommend.

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

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-5223/)󠁿

 [Knut Sparhell](https://profiles.wordpress.org/knutsp/) 2017 年 8 月 11 日

Easy way to add some obscurity to login guessing. But please update as it’s over
2 years now.

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

### 󠀁[I was surprised, how easy it was](https://wordpress.org/support/topic/i-was-surprised-how-easy-it-was/)󠁿

 [Terras Design](https://profiles.wordpress.org/1000literfotos/) 2016 年 9 月 3 
日

…works fine. Thank you 🙂

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

### 󠀁[Awesome Plugin](https://wordpress.org/support/topic/awesome-plugin-1951/)󠁿

 [pashaUSA](https://profiles.wordpress.org/pashausa/) 2016 年 9 月 3 日

This plugin should be part of Wordpress core. It really does help to hide usernames
of Site Users in URL, Which makes hackers to get through the security.

 [ 阅读所有21条评价 ](https://wordpress.org/support/plugin/wp-author-slug/reviews/)

## 贡献者及开发者

「WP Author Slug」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Konstantin Obenland ](https://profiles.wordpress.org/obenland/)

「WP Author Slug」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-author-slug/contributors)
为本插件所做的贡献。

[帮助将「WP Author Slug」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-author-slug)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-author-slug/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-author-slug/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-author-slug/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-author-slug/)。

## 更新日志

#### 5

 * Added conflict detection for author slugs that match existing page slugs. Props
   @knutsp.
 * Tested with WordPress 6.8.

#### 4

 * Moved clean up to plugin deactivation. This makes sure author slugs are only 
   modified with the plugin active.
 * Updated utility class.
 * Tested with WordPress 6.1.

#### 3

 * Maintenance release.
 * Checks if keys and properties exist before using them.
 * Tested with WordPress 5.6.

#### 2

 * Maintenance release.
 * Updated code to adhere to WordPress Coding Standards.
 * Tested with WordPress 5.0.

#### 1.3.0

 * Maintenance release.
 * Tested with WordPress 4.0.

#### 1.2.2

 * Updated utility class.
 * Tested with WordPress 3.4.1.

#### 1.2.1

 * Updated uninstall.php and activation hook to use WordPress User API instead of
   custom queries.
 * Updated utility class.

#### 1.2

 * Tested for WordPress 3.3.1.

#### 1.1

 * Tested for WordPress 3.1.1.
 * Added complete uninstall routine.
 * Added compatibility for pre-3.1 multisite installs.

#### 1.0

 * Initial Release.

## 额外信息

 *  版本 **5**
 *  最后更新：**7 月前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-author-slug/) 、 [French (France)](https://fr.wordpress.org/plugins/wp-author-slug/)
   和 [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/wp-author-slug/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-author-slug)
 * 标签
 * [author](https://cn.wordpress.org/plugins/tags/author/)[author archive](https://cn.wordpress.org/plugins/tags/author-archive/)
   [security](https://cn.wordpress.org/plugins/tags/security/)[slug](https://cn.wordpress.org/plugins/tags/slug/)
   [url](https://cn.wordpress.org/plugins/tags/url/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-author-slug/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  17 条 5 星评价     ](https://wordpress.org/support/plugin/wp-author-slug/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-author-slug/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/wp-author-slug/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-author-slug/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-author-slug/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-author-slug/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-author-slug/reviews/)

## 贡献者

 *   [ Konstantin Obenland ](https://profiles.wordpress.org/obenland/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-author-slug/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XVPLJZ3VH4GCN)