Title: Role Based Redirect
Author: Yasar Khalifa
Published: <strong>2018 年 7 月 20 日</strong>
Last modified: 2025 年 7 月 18 日

---

搜索插件

![](https://ps.w.org/role-based-redirect/assets/banner-772x250.png?rev=3497368)

![](https://ps.w.org/role-based-redirect/assets/icon-128x128.png?rev=3497368)

# Role Based Redirect

 作者：[Yasar Khalifa](https://profiles.wordpress.org/yasirkhalifa/)

[下载](https://downloads.wordpress.org/plugin/role-based-redirect.zip)

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

 [支持](https://wordpress.org/support/plugin/role-based-redirect/)

## 描述

Role Based Redirect allows you to customize the login and logout redirection URLs
based on user roles. Additionally, you can:

 * Redirect users after login based on their role.
 * Redirect users after logout based on their role.
 * Hide the WordPress admin bar for selected user roles.
 * Restrict dashboard access by user role.

This plugin is useful for membership sites, multi-role websites, or any WordPress
setup where you want to provide a tailored user experience.

## 屏幕截图

[⌊Plugin settings page where you can configure redirection and access options by
role.⌉⌊Plugin settings page where you can configure redirection and access options
by role.⌉[

Plugin settings page where you can configure redirection and access options by role.

## 安装

 1. Upload the `role-based-redirect` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to the **Users Redirect** menu in the WordPress admin sidebar to configure redirection
    and role-based options.

## 常见问题

### Can I redirect users after logout?

Yes, you can set both login and logout redirection URLs for each role.

### Can I restrict dashboard access for certain roles?

Yes, the plugin lets you prevent access to the WordPress dashboard for selected 
roles.

### Will this work with custom roles?

Yes, it works with all user roles including custom ones.

## 评价

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

### 󠀁[Restricts dashboard access — perfect for multi-role sites.](https://wordpress.org/support/topic/restricts-dashboard-access-perfect-for-multi-role-sites/)󠁿

 [Kirtikumar Solanki](https://profiles.wordpress.org/solankisoftware/) 2025 年 8
月 25 日

Highly recommended for anyone running multi-role WordPress sites!

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

### 󠀁[Excellent Performance](https://wordpress.org/support/topic/excellent-performance-23/)󠁿

 [nayandev](https://profiles.wordpress.org/nayandev/) 2025 年 8 月 11 日

This plugin works smoothly and efficiently, delivering quick redirections without
any noticeable delays. It handles user role assignments seamlessly, ensuring a consistent
and reliable experience for all visitors. Even with multiple user roles and frequent
logins, it continues to perform steadily, making it a trustworthy choice for websites
that value both speed and reliability.

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

### 󠀁[Thanks it work perfectly](https://wordpress.org/support/topic/thanks-it-work-perfectly-2/)󠁿

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

for role base redirection it work nicely

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

### 󠀁[Easy To Use](https://wordpress.org/support/topic/easy-to-use-4397/)󠁿

 [surbhivaidya](https://profiles.wordpress.org/surbhivaidya/) 2022 年 7 月 20 日

Once installed and running this is a great plugin. Simple and easy to configure,
would definitely recommend it for projects.

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

### 󠀁[Thank You For Making This Plugin – Works Perfectly](https://wordpress.org/support/topic/thank-you-for-making-this-plugin-works-perfectly/)󠁿

 [Anonymous User 18751215](https://profiles.wordpress.org/anonymized-18751215/) 
2022 年 2 月 13 日

Hello: Thank You For Making This Plugin – Works Perfectly

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

### 󠀁[this plugin overcome 301 error](https://wordpress.org/support/topic/this-plugin-overcome-301-error/)󠁿

 [yash19021998](https://profiles.wordpress.org/yash19021998/) 2022 年 2 月 4 日

this plugin overcome 301 error

 [ 阅读所有17条评价 ](https://wordpress.org/support/plugin/role-based-redirect/reviews/)

## 贡献者及开发者

「Role Based Redirect」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Yasar Khalifa ](https://profiles.wordpress.org/yasirkhalifa/)

[帮助将「Role Based Redirect」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/role-based-redirect)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.6

 * Tested with latest WordPress version 6.3.
 * Code cleanup and security enhancements.
 * Improved role handling and compatibility with custom roles.

#### 1.5

 * Localization support added.

#### 1.4

 * Minor bug fix.

#### 1.3

 * Minor bug fix.

#### 1.2

 * Removed CSS conflict.

#### 1.1

 * Minor changes for WordPress 5.0.1 compatibility.

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.6**
 *  最后更新：**11 月前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/role-based-redirect/)
 * 标签
 * [hide admin bar](https://cn.wordpress.org/plugins/tags/hide-admin-bar/)[redirection](https://cn.wordpress.org/plugins/tags/redirection/)
   [restrict dashboard](https://cn.wordpress.org/plugins/tags/restrict-dashboard/)
   [role](https://cn.wordpress.org/plugins/tags/role/)[user](https://cn.wordpress.org/plugins/tags/user/)
 *  [高级视图](https://cn.wordpress.org/plugins/role-based-redirect/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  16 条 5 星评价     ](https://wordpress.org/support/plugin/role-based-redirect/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/role-based-redirect/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/role-based-redirect/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/role-based-redirect/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/role-based-redirect/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/role-based-redirect/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/role-based-redirect/reviews/)

## 贡献者

 *   [ Yasar Khalifa ](https://profiles.wordpress.org/yasirkhalifa/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/role-based-redirect/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://myasark.wordpress.com/)