If you still need redirection functionality but want to move away from Sky Login Redirect, consider these trusted alternatives:
1. Peter’s Login Redirect
A popular, lightweight plugin that provides similar functionality.
- Supports role-based and user-based redirects.
- Very easy to use and configure.
2. LoginPress
A comprehensive plugin for customizing login screens and redirection.
- Fully customizable login UI.
- Redirection based on user roles or custom conditions.
3. Theme My Login
Allows login, registration, and profile editing from the front-end.
- Redirects users after login and logout.
- Integrates with other plugins seamlessly.
4. Custom PHP Code in functions.php
For experienced developers or those using custom themes, you can add login redirection manually:
php
function custom_login_redirect($redirect_to, $request, $user) {
if (isset($user->roles) && is_array($user->roles)) {
if (in_array(‘subscriber’, $user->roles)) {
return home_url(‘/subscriber-home/’);
} elseif (in_array(‘editor’, $user->roles)) {
return admin_url();
}
}
return $redirect_to;
}
add_filter(‘login_redirect’, ‘custom_login_redirect’, 10, 3);
This provides more flexibility without relying on external plugins.
Leave a Reply