Chuyển đến phần nội dung
WordPress.org

tiếng Việt

  • Giao diện
  • Plugin
  • Tin tức
    • Tài liệu hướng dẫn
    • Diễn đàn
  • Giới thiệu
  • Facebook #WPVN
  • Tải WordPress
Tải WordPress
WordPress.org

Plugin Directory

Block Profile Edits

  • Gửi một plugin
  • Yêu thích của tôi
  • Đăng nhập
  • Gửi một plugin
  • Yêu thích của tôi
  • Đăng nhập

Block Profile Edits

Bởi treeflips
Tải về
  • Chi tiết
  • Đánh giá
  • Cài đặt
  • Nhà phát triển
Hỗ trợ

Mô tả

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.

Cài đặt

  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.

Hỏi đáp

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.

Đánh giá

Không có đánh giá nào cho plugin này.

Người đóng góp & Lập trình viên

“Block Profile Edits” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp
  • treeflips

Dịch “Block Profile Edits” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

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.

Meta

  • Phiên bản 1.1.0
  • Cập nhật lần cuối 6 ngày trước
  • Số lượt cài đặt Ít hơn 10
  • Phiên bản WordPress 5.8 hoặc cao hơn
  • Đã kiểm tra lên đến 6.9.4
  • Phiên bản PHP 7.4 hoặc cao hơn
  • Ngôn ngữ
    English (US)
  • Thẻ
    lockProfile Fieldsrestrictrolesuser profile
  • Nâng cao

Đánh giá

Chưa có đánh giá nào được gửi.

Your review

Xem tất cả đánh giá

Những người đóng góp

  • treeflips

Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

Xem diễn đàn hỗ trợ

Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

Ủng hộ plugin này

  • Giới thiệu
  • Tin tức
  • Lưu trữ
  • Quyền riêng tư
  • Trưng bày
  • Giao diện
  • Plugin
  • Mẫu khối
  • Học hỏi
  • Hỗ trợ
  • Nhà phát triển
  • WordPress.tv ↗
  • Tham gia
  • Sự kiện
  • Quyên góp ↗
  • Năm cho Tương lai
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

tiếng Việt

  • Truy cập tài khoản X (trước đây là Twitter) của chúng tôi
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Xem trang Facebook của chúng tôi
  • Truy cập tài khoản Instagram của chúng tôi
  • Truy cập tài khoản LinkedIn của chúng tôi
  • Visit our TikTok account
  • Truy cập kênh YouTube của chúng tôi
  • Visit our Tumblr account
Viết code như làm thơ.
The WordPress® trademark is the intellectual property of the WordPress Foundation.