{"id":120,"date":"2025-02-06T12:40:03","date_gmt":"2025-02-06T12:40:03","guid":{"rendered":"https:\/\/documentation.userswp.io\/article\/how-to-redirect-users-based-on-user-roles\/"},"modified":"2025-03-26T15:39:37","modified_gmt":"2025-03-26T15:39:37","slug":"how-to-redirect-users-based-on-user-roles","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/how-tos\/how-to-redirect-users-based-on-user-roles\/","title":{"rendered":"How to Redirect Users Based on User Roles?"},"content":{"rendered":"<p>\n\tUsersWP allows role-based redirects for all user roles. You can choose to redirect a specific user role type to a given page, both after login as well as logout.&nbsp;<\/p>\n<h2>\nRedirecting Users<\/h2>\n<p>\n\tHead to <strong>UsersWP &gt; Redirects <\/strong>to manage role-based redirection settings.&nbsp;<\/p>\n<p>\n\tBased on the user roles that are active on your site, UsersWP will show four different options for each:&nbsp;<\/p>\n<ul>\n<li><strong>Login Redirect Page &#8211; <\/strong>This is the page that the user role will redirected to, after login.&nbsp;<\/li>\n<li><strong>Redirect Custom URL &#8211; <\/strong>This is the URL to redirect the particular user role to, if the Custom Redirection option is selected in the Login Redirect Page value.&nbsp;<\/li>\n<li><strong>Logout Redirect Page &#8211; <\/strong>This is the page that the user role will be redirected to, after logout.&nbsp;<\/li>\n<li><strong>Hide Admin Bar &#8211; <\/strong>If checked, the admin bar will be hidden on the frontend for this particular user role.&nbsp;<\/li>\n<\/ul>\n<section class=\"alert alert-warning\">\n\tThe redirection will not work if the <strong>Last User Page option <\/strong>is selected on the <strong>Login Redirect Page <\/strong>setting under <strong>UsersWP &gt; Settings &gt; General &gt; Login.&nbsp;<\/strong><\/section>\n","protected":false},"excerpt":{"rendered":"<p>UsersWP allows role-based redirects for all user roles. You can choose to redirect a specific user role type to a given page, both after login as well as logout.&nbsp; Redirecting Users Head to UsersWP &gt; Redirects to manage role-based redirection settings.&nbsp; Based on the user roles that are active on your site, UsersWP will show [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[180,181],"article\/categories":[41,7],"class_list":["post-120","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-login-redirect","gd_place_tags-logout-redirect","gd_placecategory-how-tos","gd_placecategory-tips-tricks-more"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/120\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=120"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}