Title: WP User Profile Restriction
Author: Shawon C.
Published: <strong>2019 年 1 月 7 日</strong>
Last modified: 2025 年 11 月 10 日

---

搜索插件

![](https://ps.w.org/wp-user-profile-restriction/assets/icon-128x128.png?rev=3392577)

# WP User Profile Restriction

 作者：[Shawon C.](https://profiles.wordpress.org/shawon786/)

[下载](https://downloads.wordpress.org/plugin/wp-user-profile-restriction.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-user-profile-restriction/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-user-profile-restriction/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-user-profile-restriction/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-user-profile-restriction/#developers)

 [支持](https://wordpress.org/support/plugin/wp-user-profile-restriction/)

## 描述

**WP User Profile Restriction** is a powerful yet simple plugin that allows you 
to restrict profile editing capabilities for specific user roles. Perfect for demo
sites, membership websites, or any WordPress installation where you need to maintain
control over user profile modifications.

#### Key Features

 * **Granular Role-Based Restrictions** – Choose exactly which user roles should
   be restricted from editing their profiles
 * **Custom Redirect Options** – Redirect restricted users to a specific URL instead
   of showing an error message
 * **Automatic Menu Hiding** – Profile links are automatically hidden from admin
   bar and dashboard menu for restricted users
 * **Easy Settings Page** – Configure all options from a user-friendly settings 
   page in WordPress admin
 * **Backward Compatible** – Maintains default security by restricting Subscribers
   and Contributors by default
 * **No Coding Required** – Simple checkbox interface for all configurations
 * **Lightweight & Fast** – Minimal impact on site performance

#### How It Works

 1. **Install and Activate** – The plugin works immediately with secure defaults
 2. **Configure Settings** – Go to Settings > Profile Restriction to customize
 3. **Select Roles** – Check which user roles should be restricted
 4. **Optional Redirect** – Set a custom redirect URL if desired
 5. **Done!** – Restricted users can no longer edit their profiles

#### Default Behavior

By default, the plugin restricts **Subscribers** and **Contributors** from editing
their profiles. This maintains security while allowing Editors, Authors, and Administrators
full access. You can customize this behavior at any time from the settings page.

#### Perfect For

 * Demo and staging websites
 * Membership sites
 * Multi-author blogs
 * Educational institutions
 * Client websites
 * Any site requiring profile editing restrictions

#### What Gets Restricted

 * Direct access to profile.php page
 * Profile link in admin bar
 * Profile submenu in dashboard
 * All profile editing capabilities for selected roles

#### Administrator Protection

Administrators always retain full access to edit any profile, regardless of plugin
settings. This ensures you never lock yourself out of critical functionality.

### Additional Information

#### Support

For support, feature requests, or bug reports, please visit the plugin’s support
forum on WordPress.org.

#### Privacy

This plugin does not collect, store, or transmit any user data. All settings are
stored locally in your WordPress database.

#### Credits

Developed by Shawon C for TheInnovs LLC

## 屏幕截图

 * [[
 * Settings page with role-based restriction options
 * [[
 * Custom redirect configuration
 * [[
 * Restricted user attempting to access profile

## 安装

#### Automatic Installation (Recommended)

 1. Log in to your WordPress dashboard
 2. Navigate to Plugins > Add New
 3. Search for “WP User Profile Restriction”
 4. Click “Install Now” and then “Activate”
 5. Go to Settings > Profile Restriction to configure

#### Manual Installation

 1. Download the plugin ZIP file
 2. Log in to your WordPress dashboard
 3. Navigate to Plugins > Add New > Upload Plugin
 4. Choose the downloaded ZIP file and click “Install Now”
 5. Activate the plugin
 6. Go to Settings > Profile Restriction to configure

#### FTP Installation

 1. Download and unzip the plugin file
 2. Upload the `wp-user-profile-restriction` folder to `/wp-content/plugins/` directory
 3. Activate the plugin through the Plugins menu in WordPress
 4. Go to Settings > Profile Restriction to configure

## 常见问题

### Does this plugin require any configuration?

No! The plugin works immediately upon activation with secure defaults (Subscribers
and Contributors are restricted). However, you can customize the behavior from Settings
> Profile Restriction.

### Which user roles are restricted by default?

By default, **Subscribers** and **Contributors** are restricted from editing their
profiles. This provides security while maintaining backward compatibility with version
1.0.6.

### Can I choose which roles to restrict?

Yes! Version 2.0 introduces a settings page where you can select exactly which user
roles should be restricted using simple checkboxes.

### Can administrators still edit profiles?

Yes, administrators always have full access to edit any profile, regardless of plugin
settings.

### What happens when a restricted user tries to access their profile?

By default, they see an error message. Optionally, you can enable custom redirect
to send them to a specific page (like the homepage or a custom access denied page).

### Will restricted users see the Profile menu?

No, the Profile link is automatically hidden from both the admin bar and the dashboard
sidebar menu for all restricted users.

### Can I redirect restricted users to a custom page?

Yes! In the settings page, you can enable custom redirect and specify any URL where
restricted users should be redirected.

### Is this plugin compatible with the latest WordPress version?

Yes, the plugin is regularly tested and updated to ensure compatibility with the
latest WordPress releases.

### Will this affect my existing users?

If you’re upgrading from version 1.0.6, the plugin maintains the same default behavior(
restricting Subscribers and Contributors). Your existing security settings remain
intact.

### Can I restrict Editors or Authors?

Yes, you can select any combination of user roles to restrict from the settings 
page.

### Does this work with custom user roles?

Yes, the plugin automatically detects all user roles on your site, including custom
roles created by other plugins.

## 评价

![](https://secure.gravatar.com/avatar/2f4f34661ec3a62bba2b22c849abac9539b4280cc1ccb5b41dc809bfa1ea3892?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-14985/)󠁿

 [gwenm](https://profiles.wordpress.org/gwenm/) 2022 年 10 月 28 日

Very good 🙂

![](https://secure.gravatar.com/avatar/09a75c3e53baa93df108e9967c509cbd7ade41d11814818f1bd71e41335969a8?
s=60&d=retro&r=g)

### 󠀁[It works!](https://wordpress.org/support/topic/it-works-2273/)󠁿

 [OutBoxed](https://profiles.wordpress.org/outboxed/) 2022 年 4 月 26 日

It does exactly what I needed it to do, thank you 🙂 PS: This works perfectly in
conjunction with the Autologin Links and Registered Users Only plugins, where you
want to create a standard subscriber autologin link (for restricted/intranet/private
content), but you don’t want subscribers to be able to modify any profile info.

![](https://secure.gravatar.com/avatar/c6f6efaa36f3dd141fcbe0789fb14cd84846f9762d46054753abef351caa3065?
s=60&d=retro&r=g)

### 󠀁[Nice plugin](https://wordpress.org/support/topic/nice-plugin-4163/)󠁿

 [samurai17](https://profiles.wordpress.org/samurai17/) 2021 年 3 月 26 日

Good job 🙏

![](https://secure.gravatar.com/avatar/cc0cd89de3f802146ac2a447490826bf4edf70f7497909ee1a5bdc7072a65ae1?
s=60&d=retro&r=g)

### 󠀁[Great feature](https://wordpress.org/support/topic/great-feature-44/)󠁿

 [lien007](https://profiles.wordpress.org/lien007/) 2021 年 1 月 24 日

Thank you so much for making

![](https://secure.gravatar.com/avatar/5edca3dd955da8f4c270761ad63005ced3f912fec15d4e37ef60d0ee7b8d0261?
s=60&d=retro&r=g)

### 󠀁[Thank you so much](https://wordpress.org/support/topic/thank-you-so-much-121/)󠁿

 [evillizard](https://profiles.wordpress.org/evillizard/) 2020 年 5 月 27 日

Quick and simple straight to the point, other authors to should be more like you,..
I’ve tried several confusing plugins .. But this just went straight to the point
and solved the problem..

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Shawon C. ](https://profiles.wordpress.org/shawon786/)
 *   [ TheInnovs Team ](https://profiles.wordpress.org/innovs/)
 *   [ TheInnovs ](https://profiles.wordpress.org/theinnovs/)

[帮助将「WP User Profile Restriction」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-user-profile-restriction)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-user-profile-restriction/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-user-profile-restriction/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/wp-user-profile-restriction/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-user-profile-restriction/)。

## 更新日志

#### 2.0.0 (2024-11-09)

 * **Major Update** – Complete rewrite with new features
 * Added: Settings page for easy configuration
 * Added: Granular role-based restriction controls
 * Added: Custom redirect option for restricted users
 * Added: Automatic hiding of Profile menu for restricted users
 * Added: Checkbox interface for selecting restricted roles
 * Improved: Code structure using OOP approach
 * Improved: Security with proper sanitization and validation
 * Improved: User experience with informative settings page
 * Maintained: Backward compatibility with default restrictions
 * Updated: Tested with WordPress 6.8.3

#### 1.0.6

 * Fix: Compatibility with the latest WordPress version

#### 1.0.5

 * Compatibility fix with WordPress 5.8.2

#### 1.0.4

 * Compatibility fix with latest WordPress

#### 1.0.3

 * Compatibility check

#### 1.0.2

 * Compatibility with WordPress 5.3.2

#### 1.0.1

 * Compatibility with WordPress 5.1

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**6 月前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 4.0.3 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-user-profile-restriction/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-user-profile-restriction/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-user-profile-restriction/reviews/)

## 贡献者

 *   [ Shawon C. ](https://profiles.wordpress.org/shawon786/)
 *   [ TheInnovs Team ](https://profiles.wordpress.org/innovs/)
 *   [ TheInnovs ](https://profiles.wordpress.org/theinnovs/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-user-profile-restriction/)