{"id":96383,"date":"2019-01-07T06:57:23","date_gmt":"2019-01-07T06:57:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-user-profile-restriction\/"},"modified":"2025-11-10T01:02:41","modified_gmt":"2025-11-10T01:02:41","slug":"wp-user-profile-restriction","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/wp-user-profile-restriction\/","author":15165754,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"trunk","tested":"6.8.5","requires":"4.0.3","requires_php":"","requires_plugins":null,"header_name":"WP User Profile Restriction","header_author":"theinnovs","header_description":"Disallow users to edit their own profile if he is not an Admin\/Editor\/Author.","assets_banners_color":"aa8a9a","last_updated":"2025-11-10 01:02:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/wp-user-profile-restriction\/","header_author_uri":"https:\/\/theinnovs.com","rating":5,"author_block_rating":0,"active_installs":400,"downloads":3673,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":5},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3392577,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3392587,"resolution":"1544x500","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2007489,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3392587,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3392587,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Settings page with role-based restriction options","2":"Custom redirect configuration","3":"Restricted user attempting to access profile","4":"Admin bar with profile menu hidden for restricted users"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[166442,166443,166444,166445,166441],"plugin_category":[],"plugin_contributors":[159319,143306,194391],"plugin_business_model":[],"class_list":["post-96383","plugin","type-plugin","status-publish","hentry","plugin_tags-disable-editing-user-profile","plugin_tags-disable-updating-my-profile","plugin_tags-my-profile-restriction","plugin_tags-profile-php-restriction","plugin_tags-user-profile-restriction","plugin_contributors-innovs","plugin_contributors-shawon786","plugin_contributors-theinnovs","plugin_committers-shawon786"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-user-profile-restriction\/assets\/icon-128x128.png?rev=3392577","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-user-profile-restriction\/assets\/screenshot-1.png?rev=2007489","caption":"Settings page with role-based restriction options"},{"src":"https:\/\/ps.w.org\/wp-user-profile-restriction\/assets\/screenshot-2.png?rev=3392587","caption":"Custom redirect configuration"},{"src":"https:\/\/ps.w.org\/wp-user-profile-restriction\/assets\/screenshot-3.png?rev=3392587","caption":"Restricted user attempting to access profile"}],"raw_content":"<!--section=description-->\n<p><strong>WP User Profile Restriction<\/strong> 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.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Granular Role-Based Restrictions<\/strong> - Choose exactly which user roles should be restricted from editing their profiles<\/li>\n<li><strong>Custom Redirect Options<\/strong> - Redirect restricted users to a specific URL instead of showing an error message<\/li>\n<li><strong>Automatic Menu Hiding<\/strong> - Profile links are automatically hidden from admin bar and dashboard menu for restricted users<\/li>\n<li><strong>Easy Settings Page<\/strong> - Configure all options from a user-friendly settings page in WordPress admin<\/li>\n<li><strong>Backward Compatible<\/strong> - Maintains default security by restricting Subscribers and Contributors by default<\/li>\n<li><strong>No Coding Required<\/strong> - Simple checkbox interface for all configurations<\/li>\n<li><strong>Lightweight &amp; Fast<\/strong> - Minimal impact on site performance<\/li>\n<\/ul>\n\n<h4>How It Works<\/h4>\n\n<ol>\n<li><strong>Install and Activate<\/strong> - The plugin works immediately with secure defaults<\/li>\n<li><strong>Configure Settings<\/strong> - Go to Settings &gt; Profile Restriction to customize<\/li>\n<li><strong>Select Roles<\/strong> - Check which user roles should be restricted<\/li>\n<li><strong>Optional Redirect<\/strong> - Set a custom redirect URL if desired<\/li>\n<li><strong>Done!<\/strong> - Restricted users can no longer edit their profiles<\/li>\n<\/ol>\n\n<h4>Default Behavior<\/h4>\n\n<p>By default, the plugin restricts <strong>Subscribers<\/strong> and <strong>Contributors<\/strong> 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.<\/p>\n\n<h4>Perfect For<\/h4>\n\n<ul>\n<li>Demo and staging websites<\/li>\n<li>Membership sites<\/li>\n<li>Multi-author blogs<\/li>\n<li>Educational institutions<\/li>\n<li>Client websites<\/li>\n<li>Any site requiring profile editing restrictions<\/li>\n<\/ul>\n\n<h4>What Gets Restricted<\/h4>\n\n<ul>\n<li>Direct access to profile.php page<\/li>\n<li>Profile link in admin bar<\/li>\n<li>Profile submenu in dashboard<\/li>\n<li>All profile editing capabilities for selected roles<\/li>\n<\/ul>\n\n<h4>Administrator Protection<\/h4>\n\n<p>Administrators always retain full access to edit any profile, regardless of plugin settings. This ensures you never lock yourself out of critical functionality.<\/p>\n\n<h3>Additional Information<\/h3>\n\n<h4>Support<\/h4>\n\n<p>For support, feature requests, or bug reports, please visit the plugin's support forum on WordPress.org.<\/p>\n\n<h4>Privacy<\/h4>\n\n<p>This plugin does not collect, store, or transmit any user data. All settings are stored locally in your WordPress database.<\/p>\n\n<h4>Credits<\/h4>\n\n<p>Developed by Shawon C for TheInnovs LLC<\/p>\n\n<!--section=installation-->\n<h4>Automatic Installation (Recommended)<\/h4>\n\n<ol>\n<li>Log in to your WordPress dashboard<\/li>\n<li>Navigate to Plugins &gt; Add New<\/li>\n<li>Search for \"WP User Profile Restriction\"<\/li>\n<li>Click \"Install Now\" and then \"Activate\"<\/li>\n<li>Go to Settings &gt; Profile Restriction to configure<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Download the plugin ZIP file<\/li>\n<li>Log in to your WordPress dashboard<\/li>\n<li>Navigate to Plugins &gt; Add New &gt; Upload Plugin<\/li>\n<li>Choose the downloaded ZIP file and click \"Install Now\"<\/li>\n<li>Activate the plugin<\/li>\n<li>Go to Settings &gt; Profile Restriction to configure<\/li>\n<\/ol>\n\n<h4>FTP Installation<\/h4>\n\n<ol>\n<li>Download and unzip the plugin file<\/li>\n<li>Upload the <code>wp-user-profile-restriction<\/code> folder to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress<\/li>\n<li>Go to Settings &gt; Profile Restriction to configure<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20this%20plugin%20require%20any%20configuration%3F'><h3>Does this plugin require any configuration?<\/h3><\/dt>\n<dd><p>No! The plugin works immediately upon activation with secure defaults (Subscribers and Contributors are restricted). However, you can customize the behavior from Settings &gt; Profile Restriction.<\/p><\/dd>\n<dt id='which%20user%20roles%20are%20restricted%20by%20default%3F'><h3>Which user roles are restricted by default?<\/h3><\/dt>\n<dd><p>By default, <strong>Subscribers<\/strong> and <strong>Contributors<\/strong> are restricted from editing their profiles. This provides security while maintaining backward compatibility with version 1.0.6.<\/p><\/dd>\n<dt id='can%20i%20choose%20which%20roles%20to%20restrict%3F'><h3>Can I choose which roles to restrict?<\/h3><\/dt>\n<dd><p>Yes! Version 2.0 introduces a settings page where you can select exactly which user roles should be restricted using simple checkboxes.<\/p><\/dd>\n<dt id='can%20administrators%20still%20edit%20profiles%3F'><h3>Can administrators still edit profiles?<\/h3><\/dt>\n<dd><p>Yes, administrators always have full access to edit any profile, regardless of plugin settings.<\/p><\/dd>\n<dt id='what%20happens%20when%20a%20restricted%20user%20tries%20to%20access%20their%20profile%3F'><h3>What happens when a restricted user tries to access their profile?<\/h3><\/dt>\n<dd><p>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).<\/p><\/dd>\n<dt id='will%20restricted%20users%20see%20the%20profile%20menu%3F'><h3>Will restricted users see the Profile menu?<\/h3><\/dt>\n<dd><p>No, the Profile link is automatically hidden from both the admin bar and the dashboard sidebar menu for all restricted users.<\/p><\/dd>\n<dt id='can%20i%20redirect%20restricted%20users%20to%20a%20custom%20page%3F'><h3>Can I redirect restricted users to a custom page?<\/h3><\/dt>\n<dd><p>Yes! In the settings page, you can enable custom redirect and specify any URL where restricted users should be redirected.<\/p><\/dd>\n<dt id='is%20this%20plugin%20compatible%20with%20the%20latest%20wordpress%20version%3F'><h3>Is this plugin compatible with the latest WordPress version?<\/h3><\/dt>\n<dd><p>Yes, the plugin is regularly tested and updated to ensure compatibility with the latest WordPress releases.<\/p><\/dd>\n<dt id='will%20this%20affect%20my%20existing%20users%3F'><h3>Will this affect my existing users?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id='can%20i%20restrict%20editors%20or%20authors%3F'><h3>Can I restrict Editors or Authors?<\/h3><\/dt>\n<dd><p>Yes, you can select any combination of user roles to restrict from the settings page.<\/p><\/dd>\n<dt id='does%20this%20work%20with%20custom%20user%20roles%3F'><h3>Does this work with custom user roles?<\/h3><\/dt>\n<dd><p>Yes, the plugin automatically detects all user roles on your site, including custom roles created by other plugins.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0 (2024-11-09)<\/h4>\n\n<ul>\n<li><strong>Major Update<\/strong> - Complete rewrite with new features<\/li>\n<li>Added: Settings page for easy configuration<\/li>\n<li>Added: Granular role-based restriction controls<\/li>\n<li>Added: Custom redirect option for restricted users<\/li>\n<li>Added: Automatic hiding of Profile menu for restricted users<\/li>\n<li>Added: Checkbox interface for selecting restricted roles<\/li>\n<li>Improved: Code structure using OOP approach<\/li>\n<li>Improved: Security with proper sanitization and validation<\/li>\n<li>Improved: User experience with informative settings page<\/li>\n<li>Maintained: Backward compatibility with default restrictions<\/li>\n<li>Updated: Tested with WordPress 6.8.3<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Fix: Compatibility with the latest WordPress version<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Compatibility fix with WordPress 5.8.2<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Compatibility fix with latest WordPress<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Compatibility check<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Compatibility with WordPress 5.3.2<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Compatibility with WordPress 5.1<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Restrict user profile editing with granular role-based controls, custom redirects, and automatic menu hiding for enhanced WordPress security.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/96383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=96383"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shawon786"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=96383"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=96383"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=96383"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=96383"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=96383"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=96383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}