WP Manifestindependent plugin directory
manifest / users / wordpress-plugin-accountdeleter

简易账号注销插件

WordPress简易账号注销插件,在任何页面(非文章页)插入代码[delete_account]即可使用

by 欧叶 · github.com/o1dyer/wordpress-plugin-accountdeleter

2stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/o1dyer/wordpress-plugin-accountdeleter/archive/refs/heads/main.zip

简易账号注销插件 (Account Deleter)

这是一个为 WordPress 开发的轻量级插件,允许用户在前端申请注销账号,并为管理员提供冷静期管理功能。

🌟 主要功能

  • 自助注销:用户在页面点击按钮即可提交注销申请。
  • 注销冷静期:支持设置缓冲天数(默认 7 天),期间账号不会被立即删除。
  • 登录恢复:用户在冷静期内重新登录,系统会提示是否撤销注销申请。
  • 自动清理:系统每小时自动检查并删除冷静期到期的账号。
  • 安全保护:管理员账号禁止从前端注销,防止误操作导致失去权限。

🚀 使用方法

  1. 安装:将 account-deleter.php 上传至插件目录并激活。
  2. 放置按钮:在任何“页面”(非文章)插入短代码 [delete_account] 即可显示注销卡片。
  3. 后台管理:在 WordPress 后台前往 用户 -> 账号注销 进行设置。

🛠 管理员设置

  • 设置天数:自定义账号从申请到正式删除的等待时间。
  • 修改文案:自定义前端显示的注销须知内容。
  • 手动干预:管理员可以在后台列表里“立即注销”或“撤销”用户的申请。

⚠️ 注意事项

  • 不可逆性:账号一旦被系统执行永久删除,数据将无法恢复。
  • 环境限制:短代码仅在 WordPress 的“页面 (Page)”中生效。