內容簡介
總結:Temporary Role Switcher 是一款讓管理者安全且暫時地在不同用戶角色間切換的 WordPress 外掛。這款外掛透過更新變數和函數名稱、強大的 nonce 驗證以及現代化的 SweetAlert 對話框提升了安全性。無論您是在不同角色下測試新功能還是排除權限問題,這個外掛讓角色切換變得輕鬆且安全。
問題與答案:
1. Temporary Role Switcher 的功能有哪些?
- 快速切換從您當前的角色到任何其他可用角色。
- 一鍵恢復功能:使用專用的浮動按鈕輕鬆切換回原始的 Administrator 角色。
- AJAX 接口:享受無需完整頁面重載的無縫角色切換體驗。
- SweetAlert 確認:現代、互動式確認對話框有助於防止意外切換。
- 增強安全性:更新函數和變量名稱結合強大的 nonce 驗證使您的外掛代碼更安全且難以模仿。
- 權限前端控制:當角色切換後,浮動操作按鈕將出現在管理介面和前端區域。
2. 如何使用 Temporary Role Switcher?
- 啟用後,在 WordPress 管理工具欄中找到新增的 Admin To 選單。
- 從下拉列表中選擇您想要的臨時角色。SweetAlert 對話框將提示您確認您的選擇。
- 當您的角色切換後,一個浮動按鈕將出現(在管理區域和前端都會),讓您輕鬆恢復為 Administrator 角色。
- 藉由這些功能,享受安全和高效的角色測試並具有完整恢復功能。
3. Temporary Role Switcher 的系統需求是什麼?
- WordPress 5.0 或更新版本。
- PHP 7.0 或更高版本。
外掛標籤
開發者團隊
原文外掛簡介
Temporary Role Switcher lets administrators safely and temporarily switch between different user roles for testing or development purposes. The plugin now features enhanced security via updated variable and function names, robust nonce verification, and a refined AJAX interface paired. Whether you’re testing a new feature under a different role or troubleshooting permission issues, this plugin makes switching roles effortless and secure.
Features
Temporary Role Switching: Quickly switch from your current role to any other available role.
One-Click Reversion: Easily revert back to your original Administrator role using a dedicated floating button.
AJAX-Powered Interface: Enjoy a seamless role switching experience without full page reloads.
Enhanced Security: Updated function and variable names combined with strong nonce verification keep your plugin code secure and harder to mimic.
Accessible Frontend Controls: A floating action button appears on both the admin and frontend areas when a role has been switched.
Usage
Once activated, locate the Admin To menu added to your WordPress admin bar.
Select your desired temporary role from the dropdown list.
When your role is switched, a floating button appears (both in the admin area and on the frontend) that lets you quickly revert back to the Administrator role.
Enjoy secure and efficient role testing with full reversion capabilities.
Requirements
WordPress 5.0 or later.
PHP 7.0 or higher.
Support & Donations
If you like this plugin and would like to support its development, please consider making a donation. Your support helps keep the plugin updated and maintained.
👉 Donate Here: help.bhandarum.com
License
This plugin is licensed under the GPL-3.0+ license. For more information, please visit https://www.gnu.org/licenses/gpl-3.0.html.
