跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Sky Login Redirect

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Sky Login Redirect

作者:Matt Biscay
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

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

View all Pro features →

屏幕截图

Login and logout redirection rules for roles, specific users or all users. You can redirect to the previous page, to a custom page, or use the WordPress default.
Login and logout redirection rules for roles, specific users or all users. You can redirect to the previous page, to a custom page, or use the WordPress default.
The page customizer allows you to customize the logo and the page background (color or background image)
The page customizer allows you to customize the logo and the page background (color or background image)
The form customizer allows you to customize the login form.
The form customizer allows you to customize the login form.
The submit button customizer allows you to customize the login submit button.
The submit button customizer allows you to customize the login submit button.

安装

  1. Install the plugin.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. 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?

  1. Go to Settings → Login Redirect in your WordPress admin
  2. Choose your redirect type (Previous Page, Custom Page, or WordPress Default)
  3. Select which users/roles the redirect applies to
  4. 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?

  1. Verify redirect rules are saved in Settings → Login Redirect
  2. Clear your browser cache and cookies
  3. Re-save permalinks: Settings → Permalinks → Save Changes
  4. If using WooCommerce, re-save WooCommerce settings
  5. 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.

评价

Does too much, and not very well

Wyldcode – e-dimensionz, Inc 2025 年 11 月 24 日 1 回复
Should just do the redirection on login, but has a bunch of hacky layout styling and other features that are both over the top and badly implemented. Breaks the layout of the login page and it seems like you can’t disable them.

Warning message by Woo

wowsathish 2024 年 4 月 28 日
I get this message its not capmbatable with woo “HOPS” hence uninstalled

The only plugin that is working!

characterx 2021 年 8 月 17 日 1 回复
Thank you! After searching and trying a lot of options a came to this. And this plugin worked instantly.

Indispensable plugin

johnching 2020 年 10 月 1 日
I am developing a big site for a non-profit organisation with many pages, multiple levels of menu and forms. Sky Login Redirect saved the day. It made the crucial difference to a user’s navigation experience as it allowed a user to login and stay on the page. Without it user journey would be a huge problem. Most appreciated and thank you.

No for pro user, noting for free

theokey 2020 年 4 月 11 日
This plugins is the worst I had used ever. There is nothing for free users.All have pro, pro and pro.

Simple end effective login redirect and fast support

pferdetermine 2020 年 2 月 9 日
I use this plugin together with events manager to assure that my users stay on the selected page after they logged in to insert new events or manage existing events or bookings. This works now for some years fine. With one of the recent updates I got some errors. I used the forum to contact the plugin developer. He reacted really fast. After having described the effect, he published a new, corrected version only a few days later. Now everything works again as expected. Thanks for this fast and effective support, Matt!
阅读所有24条评价

贡献者及开发者

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

贡献者
  • Matt Biscay
  • Freemius

帮助将「Sky Login Redirect」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

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_redirect filter 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

额外信息

  • 版本 4.2.4
  • 最后更新:1 周前
  • 活跃安装数量 2,000+
  • WordPress 版本 5.6 或更高版本
  • 已测试的最高版本为 7.0
  • PHP 版本 8.1 或更高版本
  • 语言
    English (US)
  • 标签
    custom loginlogin customizerlogin redirectlogout redirectwoocommerce login
  • 高级视图

评级

4.7 星(最高 5 星)。
  • 22 条 5 星评价 5 星 22
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 1 条 2 星评价 2 星 1
  • 1 条 1 星评价 1 星 1

Your review

查看全部评论

贡献者

  • Matt Biscay
  • Freemius

支持

最近两个月解决的问题:

总计 3,已解决 3

查看支持论坛

捐助

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

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.