Login redirect for user role
-
BBPress is redirecting my users to their profile when logged in. I want specific user roles to get redirected to a specific page in the site. I’ve tried the following function in the theme functions.php file that normally works but it is being ignored.
function my_login_redirect_employers() { if ( current_user_can('employer') ){ return '/welcome-employers/'; } } add_filter('login_redirect', 'my_login_redirect_employers',10,3);
- You must be logged in to reply to this topic.