Smart User Slug Hider


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

Retired Plugin

Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you.

There will be no more updates and I won’t answer any support questions. Thanks for your understanding.

Feel free to fork this plugin.


本插件自动以16位代码串替换用户名。无需设置,开箱即用。取消激活插件会恢复默认的 WordPress 配置。


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


Smart User Slug Hider插件将所有像的作者页面链接变成类似的样式。

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



  • [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 。


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


2024 年 4 月 30 日 2 回复
What a pity that the author is retiring and feels he can no longer support this plugin because it really did do the job and very well indeed. I do hope someone will pick up the coding and get it working again. I notice now that some of my many websites are working fine but others I’ve had to delete the plugin as it’s causing a critical error making the site completely unusable as it’s unobtainable. There must be a conflict but I can’t see it. Correction is easy, it just means accessing the WP folders, finding this plugin and deleting the folder. I’ve not been able to find another plugin that so simply does what this one does. Any ideas anyone?
2023 年 4 月 29 日
Does exactly what it says and minimal set up required. Just what I needed, thanks! I had an idea inspired by a kids’ educational app that self-generates memorable passwords that might be good for a future iteration to make it more fun: instead of numbers, a noun phrase with a few random adjectives before. Just a thought.
2023 年 3 月 18 日
I used a different user slug hider in the past and when it stopped being updated I switched to this one.
2023 年 2 月 14 日 1 回复
Best apps. but needto update for seo that are gone wrong way to user link! please solve that.
2022 年 11 月 19 日 1 回复
I like the plugin, is easy to use. I hope the plugin keep updated or improvement.


“Smart User Slug Hider” 是开源软件。 以下人员对此插件做出了贡献。


「Smart User Slug Hider」插件已被翻译至 3 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Smart User Slug Hider”翻译成您的语言。




4.0.6 (2024-04-17) URGENT BUGFIX

  • Bugfix after Cleanup

4.0.5 (2024-04-16) CLEANUP

  • Cleanup

4.0.4 (2022-10-05) FINAL VERSION

  • removed all links to webiste
  • removed request for rating

4.0.3 (2023-03-26)

4.0.2 (2022-05-28)

  • just cosmetics
  • Plugin Foundation updated to PPF08

4.0.1 (2020-08-23)

  • 用户界面小幅优化

4.0.0 (2019-12-29)

  • 从 body 标签中删除 user 类 (参见此处)
  • 总是使用未来验证模式,旧模式已移除
  • 基于我的 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)

  • 初始版本