Linux 软件免费装
Banner图

Role Based Content Restrictor

开发者 inzidev
更新时间 2026年9月22日 05:50
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1.1
版权: GPLv2 or later
版权网址: 版权信息

标签

content access-control restrict membership roles-based-content-restrictor

下载

1.0.2 1.4.2

详情介绍:

Role Based Content Restrictor allows you to restrict access to individual posts, pages, and custom post types based on user roles or login status — now with a simplified and intuitive interface. Key Features Improved Restriction UI The plugin now uses a single “Restriction Type” selector instead of multiple toggles: - No Restriction - Restrict access to this content for roles - Restrict to Logged-in Users Only - Restrict to Logged-out Users Only (Visitors Only) Only relevant fields are shown based on the selected option, making configuration clearer and preventing conflicts. Smart & Conflict-Free Logic The plugin ensures consistent behavior with a clear priority system: * Visitors Only → highest priority (logged-in users are redirected, except administrators) * Logged-in Only → restricts access to authenticated users * Role-based restriction → applies when selected Visitors Only Behavior When Visitors Only is enabled: - Logged-out users can access the content - Logged-in users are redirected to a selected page - If no page is selected, the plugin uses the post redirect or global fallback - Administrators are always allowed access Backward Compatibility Existing settings are fully preserved: - Older saved configurations are automatically mapped to the new interface - No data loss when switching between restriction types - Hidden fields are not submitted to prevent accidental overwrites Perfect for:

安装:

  1. Upload the plugin folder to /wp-content/plugins/role-based-content-restrictor/ or install directly from the WordPress Plugin Directory.
  2. Activate the plugin from Plugins > Installed Plugins.
  3. Go to Settings > Role Restrictions to configure the default redirect.
  4. Edit any page/post and use the Restrict Access meta box to:
  5. Select restriction type
  6. Configure roles (if applicable)
  7. Set redirect behavior

屏幕截图:

  • Restriction Type selector with radio-based UI.
  • Dynamic fields based on selected restriction type (roles, redirects, visitors-only settings).

升级注意事项:

1.3.0 Major update introducing login-based restriction options and a new unified interface. Existing settings are preserved and automatically adapted.

常见问题:

Will it work with custom post types?

Yes! The plugin works with all public post types registered in WordPress.

Can I restrict pages to only logged-in users?

Yes, select “Logged-in Users Only” from the restriction type.

Can I restrict pages to only visitors (logged-out users)?

Yes, select “Visitors Only”. Logged-in users will be redirected automatically.

What happens if multiple restriction types were previously enabled?

The plugin automatically resolves them into a single restriction type using a priority system, ensuring consistent behavior.

Can I redirect users to an external URL?

Not yet. You can redirect them to a page where you handle the external redirect using a script or shortcode.

Does it support multiple roles per page/post?

Yes, when using role-based restriction, you can select multiple roles.

What happens if no redirect page is set?

The plugin will use the global fallback page set in the plugin settings. If that’s not set, users are redirected to the homepage.

更新日志:

1.4.2 1.4.1 1.4.0 1.3.0 1.2.0 1.0.2 1.0.1 1.0.0