跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

User Suspend

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

User Suspend

作者:joelledesmajr
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

User Suspend gives you a straightforward way to suspend WordPress user accounts. Suspended users are blocked at login and their active sessions are ended immediately.

You can set a reason for each suspension, choose a date for it to lift automatically, and track everything through a built-in audit log.

Features

  • Permanent or timed suspensions — set an expiry date and the account is automatically restored
  • Suspension reasons stored and emailed to the user when their account is suspended
  • Active sessions are destroyed the moment a suspension is applied
  • Audit log tracks every suspend and unsuspend action with timestamps
  • Dedicated Suspended Users page under the Users menu
  • Status column in the Users list table
  • Bulk suspend and unsuspend from the Users list table
  • Administrators and the currently logged-in user cannot be suspended
  • Object caching for fast suspension status lookups
  • Clean uninstall removes all plugin data

屏幕截图

  • Suspension section on the user profile edit screen.
  • Suspended Users admin page with audit log.
  • Status column in the Users list table.

安装

  1. Upload the user-suspend folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Users → Suspended Users to manage suspensions, or open any user’s profile to suspend them individually.

常见问题

Will suspending a user log them out immediately?

Yes. The moment you save a suspension, all of that user’s active sessions are destroyed.

Can I set a suspension to expire automatically?

Yes. When suspending a user from their profile page, set a date and time in the Expiry field. The account will be restored automatically when that time passes.

Can administrators be suspended?

No. Administrator accounts and your own account are protected and cannot be suspended.

What happens to the suspension data if I deactivate the plugin?

Deactivating the plugin does not remove any data. Uninstalling (deleting) the plugin removes all suspension records, audit log entries, and plugin options from the database.

评价

此插件暂无评价。

贡献者及开发者

「User Suspend」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • joelledesmajr

帮助将「User Suspend」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

2.1.1

  • Security hardening: hard-fail on missing or invalid bulk action nonce.
  • Security hardening: sanitize bulk user ID array with absint before processing.
  • Security hardening: strip all HTML tags from email notification fields.
  • Security hardening: escape avatar output with wp_kses_post.
  • Removed internal meta key from migration summary stored in options.

2.1.0

  • Redesigned admin UI with stats bar, avatar thumbnails, and card-style layout.
  • Added dedicated CSS file for all admin styles.
  • Responsive layout for mobile admin screens.

2.0.3

  • Renamed plugin to User Suspend.
  • Updated Tested up to: 6.9.
  • Added readme.txt for WordPress.org.
  • Fixed all WordPress Coding Standards violations.
  • Added complete PHPDoc coverage across all files.

2.0.1

  • Fixed activation timeout in WordPress Playground by deferring data migration to admin_init.

2.0.0

  • Complete rewrite with class-based architecture.
  • Added timed suspensions, reasons, audit log, email notifications, bulk actions, and session destruction.
  • Fixed critical logic bug in v1.0 where saving any user profile could trigger a ban.
  • Added automatic migration of v1.0 ban data on activation.

额外信息

  • 版本 2.1.2
  • 最后更新:1 周前
  • 活跃安装数量 不到10
  • WordPress 版本 5.8 或更高版本
  • 已测试的最高版本为 6.9.4
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    loginmoderationsecuritysuspendusers
  • 高级视图

评级

尚未提交反馈。

添加我的评价

查看全部评论

贡献者

  • joelledesmajr

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.