Smart User Slug Hider


The Smart User Slug Hider Plugin hides usernames in Author Pages URLs to enhance Security


The plugin automatically replaces user names with 16 digits coded strings. There are no settings. Just install and forget. Deactivating the Plugin restores the default WordPress behavior.

Version 4.0.0 Update Notice

Previous versions of this plugin used a function that was removed in PHP 7.2. Version 2 of this plugin introduced a so called Future Proof Mode, that used a different encryption method to work with PHP 7.2 and newer.

In version 4.0.0 only this new method is available. The old method was completely removed.

Unfortunately it is not possible to get the same result. This means that the coded User Slug changes if you haven’t activated Future Proof Mode yet.


WordPress 的作者页面链接使用诸如这样的形式,其中的name表示用户的登录名。


The Smart User Slug Hider Plugin changes all author page URLs from e.g. to something like

这个代码是自动生成的,且无法逆推出用户名。访问 WordPress 默认的 URL 将提示 404(未找到)错误。

也适用于 BuddyPress 会员页面。

As of version 4.0.0 also the author class from body tag is removed (see this topic)



  • [smart_user_slug] —— 文章作者个人资料页面的 user slug —— 例:e9e716def73f76ac
  • [smart_user_url] —— 文章作者个人资料页面的 url —— 例
  • [smart_user_link] —— 添加一个通向文章作者的个人资料页面的链接



  • get_smart_user_slug( $author_id ) 用来获取 the user slug for the author —— 作者的user slug —— 其中的 $author_id 参数是可选的, 如果省略,则获取当前文章的作者 ID 。
  • the_smart_user_slug( $author_id ) 用来显示作者的user slug —— 其中的 $author_id 参数是可选的, 如果省略,则显示当前文章的作者 ID 。


Support Forum.


How to easily close a HUGE WordPress Security Gap using the free Plugin Smart User Slug Hider

Do you like this plugin?

I spend a lot of my precious spare time to develop and maintain my free WordPress plugins. You don’t need to make a donation. No money, no beer, no coffee. If you like this plugin then please do me a favor and give it a good rating. Thanks.


  • 本插件不设置 cookies
  • 本插件不会收集或存储任何数据
  • 本插件不会将任何数据传输到其他服务器上



This plugin is compatible with ClassicPress.

来自 Peter 的更多插件


YouTube 频道




Does the job - no fuss - no frills!
Das Plugin verhindert, dass der Benutzer ausgespäht und der Nutzername z.B. für den Login genutzt wird. Ein wichtiges Plugin, das ich nicht missen möchte...!
I used to install "Edit Author Slug" in every one of my website, but I always wished for simpler settings. I love this "smart User Slug Hider" because it needs no configuration if you have installed WordPress in PHP 7.2 or newer. It has been working perfectly so far, and seems to be lightweight. I'd highly recommend this plugin over "Edit Author Slug" if there will be only one author in a website, because it is unlikely for viewers to bookmark the author archive page, thus the page doesn't need a comprehensible URL.
Read all 31 reviews

Contributors & Developers

“Smart User Slug Hider” is open source software. The following people have contributed to this plugin.


“Smart User Slug Hider” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Smart User Slug Hider” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


4.0.0 (2019-12-29)

  • remove user class from body tag (See here)
  • always use Future Proof Mode, old method removed
  • rewritten based on my Plugin Foundation PPF03

3 (2018-12-31)

  • 未来安全模式(Future Safe Mode)更名为未来验证模式(Future Proof Mode)
  • 如果 mcrypt 不可用则自动开启未来验证模式
  • 核心优化
  • 用户界面优化
  • 调整了 manage_options 的性能以显示管理页面

2 (2018-03-14)

  • 未来安全模式

1.5 (2017-11-16)

  • WP 4.9 中的错误显示已修复

1.4 (2017-07-15)

  • 和 BuddyExtender 插件相关的修复

1.3 (2017-07-17)

  • BuddyPress 兼容性
  • 重新设计的管理界面
  • 核心优化

1.2 (2016-10-04)

  • 添加短代码
  • 添加主题函数

1.1 (2016-06-30)

  • 代码优化
  • 添加插件信息页面

1.0 (2014-10-02)

  • 初始版本