{"id":253843,"date":"2025-10-04T21:09:28","date_gmt":"2025-10-04T21:09:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/role-based-content-restrictor\/"},"modified":"2025-12-03T16:59:18","modified_gmt":"2025-12-03T16:59:18","slug":"role-based-content-restrictor","status":"publish","type":"plugin","link":"https:\/\/et.wordpress.org\/plugins\/role-based-content-restrictor\/","author":23372761,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.0","stable_tag":"trunk","tested":"6.9.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Role Based Content Restrictor","header_author":"Inzamam Abbasi","header_description":"Restrict single pages or posts by user role(s). Redirect users without the allowed role to a custom page (post meta) or to a global fallback configured in Settings.","assets_banners_color":"a8c6e5","last_updated":"2025-12-03 16:59:18","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/inzidev.com\/","header_plugin_uri":"","header_author_uri":"https:\/\/inzidev.com","rating":5,"author_block_rating":0,"active_installs":50,"downloads":451,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"inzidev","date":"2025-10-04 21:16:47"}},"upgrade_notice":{"1.0.1":"<p>Compatibility update for WordPress.org guidelines. Please update to ensure proper translations and smoother installation.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":3},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3372960,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3372960,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3372960,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3372960,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3372960,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The global settings page, where you can define a default redirection page for users who do not have the required role.","2":"The page\/post restriction settings, allowing you to limit access to specific user roles and assign a custom redirection page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1912,529,1932,1914,248745],"plugin_category":[58],"plugin_contributors":[248746],"plugin_business_model":[],"class_list":["post-253843","plugin","type-plugin","status-publish","hentry","plugin_tags-access-control","plugin_tags-content","plugin_tags-membership","plugin_tags-restrict","plugin_tags-roles-based-content-restrictor","plugin_category-user-management","plugin_contributors-inzidev","plugin_committers-inzidev"],"banners":{"banner":"https:\/\/ps.w.org\/role-based-content-restrictor\/assets\/banner-772x250.png?rev=3372960","banner_2x":"https:\/\/ps.w.org\/role-based-content-restrictor\/assets\/banner-1544x500.png?rev=3372960","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/role-based-content-restrictor\/assets\/icon-128x128.png?rev=3372960","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/role-based-content-restrictor\/assets\/screenshot-1.png?rev=3372960","caption":"The global settings page, where you can define a default redirection page for users who do not have the required role."},{"src":"https:\/\/ps.w.org\/role-based-content-restrictor\/assets\/screenshot-2.png?rev=3372960","caption":"The page\/post restriction settings, allowing you to limit access to specific user roles and assign a custom redirection page."}],"raw_content":"<!--section=description-->\n<p><strong>Role Based Content Restrictor<\/strong> allows you to restrict access to individual posts, pages, and custom post types based on user roles.<\/p>\n\n<p>You can:\n* Allow specific roles per page\/post.\n* Set a <strong>custom redirect page<\/strong> per post.\n* Configure a <strong>global fallback redirect<\/strong> from the plugin settings.\n* Optionally display a message or notice on the redirect page.<\/p>\n\n<p>Perfect for:\n* Membership sites<br \/>\n* Learning Management Systems (LMS)<br \/>\n* Intranets and company portals<br \/>\n* Client dashboards or gated content areas<\/p>\n\n<p>Lightweight, developer-friendly, and works with any theme or builder (Elementor, Gutenberg, etc.).<\/p>\n\n<h3>About the Author<\/h3>\n\n<p><strong>Inzamam Abbasi<\/strong> \u2013 Professional WordPress Developer with over 10 years of experience, specializing in <strong>custom plugin development<\/strong> and scalable WordPress solutions.<br \/>\nI\u2019ve successfully delivered 1,000+ projects, including membership systems, e-learning platforms, booking systems, and more.<\/p>\n\n<p>Learn more at <a href=\"https:\/\/inzidev.com\">inzidev.com<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/role-based-content-restrictor\/<\/code> or install directly from the WordPress Plugin Directory.<\/li>\n<li>Activate the plugin from <strong>Plugins &gt; Installed Plugins<\/strong>.<\/li>\n<li>Go to <strong>Settings &gt; Role Restrictions<\/strong> to configure the default redirect.<\/li>\n<li>Edit any page\/post and use the <strong>Restrict Access<\/strong> meta box to choose roles and a redirect page.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='will%20it%20work%20with%20custom%20post%20types%3F'><h3>Will it work with custom post types?<\/h3><\/dt>\n<dd><p>Yes! The plugin works with all public post types registered in WordPress.<\/p><\/dd>\n<dt id='can%20i%20redirect%20users%20to%20an%20external%20url%3F'><h3>Can I redirect users to an external URL?<\/h3><\/dt>\n<dd><p>Not yet. You can redirect them to a page where you handle the external redirect using a simple script or shortcode.<\/p><\/dd>\n<dt id='does%20it%20support%20multiple%20roles%20per%20page%2Fpost%3F'><h3>Does it support multiple roles per page\/post?<\/h3><\/dt>\n<dd><p>Yes, you can select multiple roles for each piece of content.<\/p><\/dd>\n<dt id='what%20happens%20if%20no%20redirect%20page%20is%20set%3F'><h3>What happens if no redirect page is set?<\/h3><\/dt>\n<dd><p>The plugin will use the global fallback page set in the plugin settings. If that\u2019s not set, users are redirected to the homepage.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Confirmed compatibility with WordPress 6.9<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Minor fixes for submission and compliance with WordPress.org guidelines.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Improved compatibility with WordPress.org guidelines (removed <code>load_plugin_textdomain<\/code>).<\/li>\n<li>Updated text domain and folder structure to match slug.<\/li>\n<li>Minor code cleanups.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial public release.<\/li>\n<\/ul>","raw_excerpt":"Restrict access to pages, posts, and custom post types by user roles. Redirect unauthorized users to a custom page or a global fallback.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/253843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=253843"}],"author":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/inzidev"}],"wp:attachment":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=253843"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=253843"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=253843"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=253843"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=253843"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=253843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}