用户切换 WordPress 插件
描述
This plugin allows you to quickly swap between user accounts in WordPress at the click of a button. You’ll be instantly logged out and logged in as your desired user. This is handy for testing environments, for helping customers on WooCommerce sites, or for any site where administrators need to switch between multiple accounts.
功能
- 切换用户:在 用户 页面快速切换为任意用户。
- 切回:同时还可以快速切回之前的账户。
- 临时登出:登出用户,在需要的时候快速登入。
- Compatible with Multisite, WooCommerce, BuddyPress, bbPress, and most two-factor authentication plugins.
安全性
- Only users with the ability to edit other users can switch user accounts. By default this is only Administrators on single site installations, and Super Admins on Multisite installations.
- 不会(也不可能)暴露用户之间的密码。
- 使用 WordPress 自身的 cookie 验证系统来记录您的用户切换。
- 基于 WordPress 的临时安全系统实现,保证用户切换请求无法被伪造。
- Full support for user session validation where appropriate.
- 完整支持 SSL 后台管理(如果可用的话)
用法
- 在 WordPress 中访问 用户 菜单,然后您会在每个用户的动作按钮旁边发现一个 切换用户 的链接。
- 点击这个链接你会立即切换为这个用户。
- 您可以通过管理后台的 切回 链接或者工具栏处的用户档案下拉菜单中的链接快速切换为原始登录用户。
查看 FAQ 来了解更多关于 临时登出 等更多功能。
Other Plugins
I maintain several other plugins for developers. Check them out:
- Query Monitor is the developer tools panel for WordPress
- WP Crontrol lets you view and control what’s happening in the WP-Cron system
Privacy Statement
User Switching makes use of browser cookies in order to allow users to switch to another account. Its cookies operate using the same mechanism as the authentication cookies in WordPress core, which means their values contain the user’s user_login
field in plain text which should be treated as potentially personally identifiable information (PII) for privacy and regulatory reasons (GDPR, CCPA, etc). The names of the cookies are:
wordpress_user_sw_{COOKIEHASH}
wordpress_user_sw_secure_{COOKIEHASH}
wordpress_user_sw_olduser_{COOKIEHASH}
User Switching does not send data to any third party, nor does it include any third party resources, nor will it ever do so.
See also the FAQ for some questions relating to privacy and safety when switching between users.