描述
Take complete control of your WordPress login experience! Sky Login Redirect is the most flexible and powerful login/logout redirect plugin for WordPress, trusted by thousands of sites worldwide.
🎯 Why Choose Sky Login Redirect?
Perfect for:
✓ Membership sites that need role-based redirects
✓ WooCommerce stores wanting seamless checkout flows
✓ Multi-author blogs with custom dashboards
✓ Client sites requiring branded login pages
✓ Any site wanting better user experience
🚀 Core Features (FREE)
Smart Redirects
* Redirect users to previous page they were viewing
* Set redirects by user role (Admin, Editor, Subscriber, etc.)
* Target specific users with custom redirects
* Global redirects for all users
* Separate login and logout redirect rules
* Automatic loop detection prevents infinite redirects
Login Page Customizer
* Custom logo upload
* Background color or image
* Form styling (colors, borders, padding)
* Button customization (colors, size, alignment)
* Live preview of changes
* No coding required!
WooCommerce Integration (Enhanced in v4.1)
* Preserves cart/checkout redirects automatically
* Smart My Account endpoint handling
* Prevents redirect loops on customer-logout
* Shop page fallback on logout
Performance & Security
* Built with modern PHP 8.1+ architecture
* AJAX-powered admin interface
* Rate limiting on AJAX endpoints
* Dual-layer caching for speed
* 40-60% faster than previous versions
⚡ Technical Excellence
- Modern codebase: Enums, readonly classes, strict types
- Enterprise-grade security: Rate limiting, output escaping, nonce verification
- Optimized performance: Object caching, transients, minimal database queries
- Developer-friendly: Debug logging, extensible architecture, clean code
Important: Version 4.1.0 requires PHP 8.1 or higher for modern features and enhanced security.
💎 Pro Features
Upgrade to Sky Login Redirect Pro for advanced functionality:
Advanced Redirects
* More granular redirect rules
* Easy Digital Downloads integration
* Advanced WooCommerce customization
* Conditional logic for redirects
Content Restriction
* Restrict pages/posts to logged-in users
* Role-based content access control
* Redirect non-authorized users
Shortcodes & Widgets
* [slr_login_form] – Embed login form anywhere
* [slr_login_link] – Custom login/logout links
* Automatic menu integration
* Modal login form with customizer
Enhanced Customization
* WooCommerce My Account page styling
* Custom CSS editor
* Additional UX/UI options
* Advanced form styling
Priority Support
* Direct developer access
* Faster response times
* Custom feature requests considered
屏幕截图




安装
- Install the plugin.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Visit the ‘Login Redirect’ settings page to set your login and logout redirects or edit your login page’s styles.
常见问题
-
How do I set up redirects?
-
- Go to Settings Login Redirect in your WordPress admin
- Choose your redirect type (Previous Page, Custom Page, or WordPress Default)
- Select which users/roles the redirect applies to
- Save changes and test!
-
Can I redirect different user roles to different pages?
-
Yes! You can set unique redirects for each user role (Administrator, Editor, Author, Subscriber, etc.) and even target specific users by username.
-
Does it work with WooCommerce?
-
Absolutely! Version 4.1.0 includes enhanced WooCommerce integration:
* Preserves cart/checkout redirects automatically
* Smart My Account endpoint handling
* Customizable logout redirects
* No conflicts with WooCommerce login flow -
Will it work with my membership plugin?
-
Yes! Sky Login Redirect is compatible with most membership plugins including MemberPress, Restrict Content Pro, Paid Memberships Pro, and others.
-
Redirections don’t seem to trigger – what should I do?
-
- Verify redirect rules are saved in Settings Login Redirect
- Clear your browser cache and cookies
- Re-save permalinks: Settings Permalinks Save Changes
- If using WooCommerce, re-save WooCommerce settings
- Check for plugin conflicts by temporarily disabling other plugins
-
Can I redirect users back to the page they were viewing?
-
Yes! Select “Previous Page” as your redirect option. The plugin intelligently tracks the last page visited and redirects users there after login.
-
Does it support custom login pages?
-
Yes! The plugin includes a visual login page customizer where you can:
* Upload custom logos
* Change colors and backgrounds
* Style forms and buttons
* Match your brand perfectly -
What’s new in version 4.1.0?
-
Version 4.1.0 brings major improvements:
* Modern PHP 8.1+ architecture for better performance
* Enhanced WooCommerce integration
* AJAX rate limiting for security
* Improved redirect loop detection
* Cleaner, more maintainable codebase -
Is it translation ready?
-
Yes! The plugin is fully translation-ready and includes a .pot file for translators.
-
Where can I get support?
-
Free support is available through the WordPress.org support forum. Pro users get priority email support.
评价
贡献者及开发者
更新日志
4.2.4 – 2026-06-12
- New – Generic login error messages (Starter): optionally replace WordPress’s username-revealing login, lost-password and email-login errors with a single neutral message, so attackers can’t tell whether a username or email address exists on your site (account enumeration). Enable it under Login Redirect Tweaks Admin tweaks. Harmless notices like “empty password” are left intact; the message is customizable via the slr_generic_login_error_message filter.
- New – Cloudflare Turnstile anti-spam protection (Platinum). Adds a free, privacy-friendly, no-puzzle CAPTCHA to the WordPress login, registration and lost-password forms to stop spam bots and brute-force attempts. Enable it and paste your site/secret keys under Login Redirect Tweaks Spam protection. Programmatic logins (XML-RPC, REST, application passwords) are never affected.
4.2.3 – 2026-06-02
- Fix – Fatal error (TypeError) on login when another plugin’s
login_redirect/logout_redirectfilter callback returned a non-string value (e.g.true). The redirect arguments are now normalised to a string or null before being passed to the strictly-typed RedirectManager, so the plugin no longer crashes wp-login.php. - Hardening – The WooCommerce and EDD redirect handlers and the custom login URL filter now defensively normalise any non-string value passed by third-party plugins (including arrays/objects), preventing the same class of error across all redirect filters.
4.2.2 – 2026-06-02
- Fix – Users not covered by any redirect rule (including administrators) were forced to the homepage on login/logout. The plugin now preserves the default WordPress destination (e.g. the dashboard) when no rule matches the user, so a rule scoped to specific roles only affects those roles.
- Fix – Role-based content restriction restricted every page the role viewed instead of only the pages selected in the rule. It now respects the chosen “Content to restrict” list, consistent with user- and logged-out-based rules.
- Improvement – Both redirect rules and content restriction rules now match against all of a user’s roles instead of only the primary role, so multi-role users are handled correctly.
4.2.1 – 2026-05-31
- Security – Modal login brute-force protection now uses a transient instead of the non-persistent object cache, so the rate limiter works on sites without Redis/Memcached.
- Security – Client IP detection now trusts only REMOTE_ADDR by default; spoofable proxy headers (X-Forwarded-For, CF-Connecting-IP) are opt-in via the slr_rate_limit_ip filter, closing a rate-limit bypass.
- Fix – Fatal error on the modal login form caused by a missing get_current_url() import.
- Fix – WooCommerce registration redirect no longer discards the default destination when the custom redirect is disabled.
- Fix – Possible TypeError when building a nav-menu login/logout link with no saved link type.
- Internal – Removed redundant wp_set_current_user()/wp_set_auth_cookie() after wp_signon() in AJAX login.
- Internal – PERF-005 migration: removed a duplicate option read and guarded upgrader array keys.
4.2.0 – 2026-05-29
- New – IPs are now correctly detected, when behind a proxy.
- New – Migrate 5 fields to CF association with lazy-loaded paginated search.
- Fix – Two separate CookieManager instances were created.
- Fix – Restrict rule header template now displays the selected content-to-restrict title at a glance
- Fix – Rule header template: defensive typeof check for slr_xrole[0] against future association field format changes
- New – carbonade_pipe(): reconstructs CF complex (repeater) fields from flat pipe-delimited wp_option rows without Carbon Fields being booted — safe on wp-login.php and any frontend context
- Internal – slr_options_cache() shared cache loader: carbonade() and carbonade_pipe() share a single get_cached_options() call per request
Older versions changes can be found in the changelog
