
內容簡介
這個外掛最初是由Mark Wilkinson開發的。
它提供了一個管理列 "切換至使用者" 的選項,當游標移動到上面時,會提供一個搜尋框,您可以在其中查詢要切換到的使用者。結果是連結,以便您切換到該使用者。這個外掛很適合當您建立網站給客戶時,有利於您看到客戶登錄後所看到的網站。
此外,它還有一個可選的模式,您可以使用自訂的鍵盤組合,例如 "su",來啟動搜尋使用者的表單。然後,您可以使用鍵盤上的箭頭導覽到結果列表,按回車鍵以切換到選定的使用者。同樣的組合鍵還可以用來聚焦"關閉切換"的連結,按回車鍵以模擬單擊。
要啟用此功能並設置自訂鍵盤組合(即魔術詞),您需要使用abus_ajax_args並添加一個"magicWord"變數。
請注意,鍵盤導航不取決於自訂鍵盤組合,可直接使用。
外掛標籤
開發者團隊
原文外掛簡介
This plugin was originally developed by Mark Wilkinson.
An admin bar “Switch to User” option is provided which on hover provides a search box where you can query a user to switch to. The results are links to switch to that user. This plugin is great for when you are building sites for clients and it is beneficial to see the site as your logged in client see’s it.
And there is an optional mode where you can use a custom keyboard combination, say ‘su’, and it activates the form where you search for users, and then you can use keyboard arrows to navigate the list of results, and the return key to switch to the selected user. The same combo can be used to focus the ‘Switch Off’ link, following a return to simulate a click.
To activate this feature and set the custom keyboard combination, aka magic word, you need to use the abus_ajax_args and add a ‘magicWord’ variable.
Note that keyboard navigation is not dependant on the custom keyboard combination, and can be used out of the box.
