跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

Block Profile Edits

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

Block Profile Edits

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

描述

Block Profile Edits lets administrators restrict specific user roles from editing their own profile fields. You can choose which roles and profile fields to restrict, and also show a custom message to restricted users.

This plugin was originally inspired to prevent users from unauthorized redistributing or reselling account access. A common problem with unwanted abuse of GPL themes/plugins. Sites using PDF-stampers to watermark ebooks will also benefit since users cannot change their personal information.

Features:

  • Choose user roles to restrict – Subscriber, Customer, Student, etc. (Administrators are exempt.)
  • Choose profile fields to lock – Name, Email, etc.
  • Display custom message – to restricted users, e.g. “Sorry this info cannot be changed.”
  • Frontend/Backend restriction – works anywhere account profile fields are shown.
  • Server-side enforcement – for WP-admin profile saves and WordPress user update APIs.
  • Clean, modular code – lightweight, minimalist, no site-slowdown.

Technical Notes:

  • Restriction only works on default WordPress profile fields. Extra fields added by plugins are not yet integrated, may be considered for future development.
  • Frontend behavior may vary depending the page template. Most cases appear as normal, fields are visually blocked (greyed out) and custom message is shown. In some cases, fields appear as editable but data won’t save when submitted.
  • Testing shortcode – add [treeflips_bpe_test_form] to any page to test frontend restrictions for logged-in users. Locked fields should render as read-only and display the restriction message.

安装

  1. Upload the plugin files to /wp-content/plugins/block-profile-edits.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Go to Users > Block Profile Edits to configure restrictions.

常见问题

Will this affect frontend profile editing plugins?

It can. Frontend forms that use WordPress user update APIs will be blocked for locked fields. Custom forms that write directly to the database may bypass WordPress hooks.

Are administrators restricted?

No. Users with the administrator role always have full edit access.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者
  • treeflips

帮助将「Block Profile Edits」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.1.0

  • Renamed testing shortcode to treeflips_bpe_test_form for distinct prefixing.
  • Replaced inline <style> and <script> tags with wp_add_inline_style() and wp_add_inline_script().
  • Removed unnecessary custom translation loader (auto-loaded in WP 5.8+).
  • Updated public code identifiers and options to use the distinct treeflips_bpe prefix.
  • Removed the deprecated testing shortcode alias.

1.0.6

  • Updated readme descriptions and text.
  • Removed domain path “/languages”.

1.0.5

  • Updated the frontend test shortcode to submit with AJAX and show inline success/error messages without page reloads.

1.0.4

  • Updated the frontend test shortcode to visually lock restricted fields and show the configured restriction message.

1.0.3

  • Added frontend restriction testing shortcode.

1.0.2

  • Strengthened server-side protection for locked core profile fields across backend, frontend, AJAX, REST, and WordPress user update API requests.
  • Prevented locked profile meta from being added, updated, or deleted for restricted users.
  • Removed duplicate native browser tooltip on locked backend fields.

1.0.1

  • Fixed profile screen asset loading for locked backend fields.
  • Improved locked field message behavior for pointer and touch users.

1.0.0

  • Initial release.

额外信息

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

评级

尚未提交反馈。

Your review

查看全部评论

贡献者

  • treeflips

支持

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

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • 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.