內容簡介
此外掛允許您的使用者(除了管理員)手動刪除他們自己的帳戶。它使用 Sweet Alert jQuery 外掛程式,使警示和提示外觀更精美。
預設情況下,此外掛會在使用者的後台個人檔案頁面加入一個刪除按鈕。您也可以使用 [wp_delete_user_accounts] 短碼將刪除按鈕新增到任何頁面或文章。
注意:以管理員身份登入時,並不會顯示刪除按鈕。這是為了避免您無法進入您的網站。要看到刪除按鈕,您需要以非管理員角色帳戶登入。
有關更多技術資訊,包括可用的連結點(動作和篩選器),請查看此外掛的 Github 自述文件。
外掛標籤
開發者團隊
原文外掛簡介
Allow your users (except for administrators) to manually delete their own accounts. It uses the Sweet Alert jQuery plugin for slick-looking alerts and prompts.
By default, this plugin adds a button to a user’s profile page in the wp-admin. You can also add a delete button to any page or post using the [wp_delete_user_accounts] shortcode.
NOTE: Delete buttons are not displayed when logged in as an administrator. This is done to protect against locking yourself out of your site. To see the delete button, you’ll need to log in with an account that does not have the administrator role.
For more technical info, including available hooks (actions and filters), please see the plugin’s readme file on Github.
