{"id":18287,"date":"2012-05-24T18:37:47","date_gmt":"2012-05-24T18:37:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sky-login-redirect\/"},"modified":"2026-03-30T11:42:45","modified_gmt":"2026-03-30T11:42:45","slug":"sky-login-redirect","status":"publish","type":"plugin","link":"https:\/\/ast.wordpress.org\/plugins\/sky-login-redirect\/","author":9532416,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"4.1.9","stable_tag":"trunk","tested":"6.9.4","requires":"5.6","requires_php":"8.1","requires_plugins":null,"header_name":"Sky Login Redirect","header_author":"Utopique","header_description":"","assets_banners_color":"66a9e3","last_updated":"2026-03-30 11:42:45","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=DNSC3NVBWR66L","header_plugin_uri":"https:\/\/utopique.net\/products\/sky-login-redirect-premium\/","header_author_uri":"https:\/\/utopique.net\/","rating":4.7,"author_block_rating":0,"active_installs":2000,"downloads":101747,"num_ratings":24,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"4.1.9":"<p><strong>Major Performance &amp; Resilience Update!<\/strong> Carbon Fields and Freemius SDK no longer load on frontend pages \u2014 saves ~5-15 ms and ~1-2 MB memory per page load. Fixed cookie clearing on logout and CSS zero-value handling. Open redirect hardening on custom URL rules. Improved compatibility with security plugins (WPS Limit Login).<\/p>"},"ratings":{"1":1,"2":1,"3":0,"4":0,"5":22},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1141443,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1141443,"resolution":"256x256","location":"assets","locale":""},"icon-280x280.png":{"filename":"icon-280x280.png","revision":1141443,"resolution":"280x280","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":905469,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3494532,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"landingPage\":\"\\\/wp-admin\\\/admin.php?page=sky-login-redirect\",\"preferredVersions\":{\"php\":\"8.1\",\"wp\":\"latest\"},\"steps\":[{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"sky-login-redirect\"},\"options\":{\"activate\":true}},{\"step\":\"login\"}]}"}},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2414629,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2414627,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2414627,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2414627,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"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.","2":"The page customizer allows you to customize the logo and the page background (color or background image)","3":"The form customizer allows you to customize the login form.","4":"The submit button customizer allows you to customize the login submit button."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3691,41128,21879,72168,66285],"plugin_category":[38],"plugin_contributors":[81304],"plugin_business_model":[],"class_list":["post-18287","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-login","plugin_tags-login-customizer","plugin_tags-login-redirect","plugin_tags-logout-redirect","plugin_tags-woocommerce-login","plugin_category-authentication","plugin_contributors-skyminds","plugin_committers-skyminds","plugin_support_reps-skyminds"],"banners":{"banner":"https:\/\/ps.w.org\/sky-login-redirect\/assets\/banner-772x250.png?rev=905469","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/sky-login-redirect\/assets\/icon-128x128.png?rev=1141443","icon_2x":"https:\/\/ps.w.org\/sky-login-redirect\/assets\/icon-256x256.png?rev=1141443","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/sky-login-redirect\/assets\/screenshot-1.png?rev=2414629","caption":"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."},{"src":"https:\/\/ps.w.org\/sky-login-redirect\/assets\/screenshot-2.png?rev=2414627","caption":"The page customizer allows you to customize the logo and the page background (color or background image)"},{"src":"https:\/\/ps.w.org\/sky-login-redirect\/assets\/screenshot-3.png?rev=2414627","caption":"The form customizer allows you to customize the login form."},{"src":"https:\/\/ps.w.org\/sky-login-redirect\/assets\/screenshot-4.png?rev=2414627","caption":"The submit button customizer allows you to customize the login submit button."}],"raw_content":"<!--section=description-->\n<p><strong>Take complete control of your WordPress login experience!<\/strong> Sky Login Redirect is the most flexible and powerful login\/logout redirect plugin for WordPress, trusted by thousands of sites worldwide.<\/p>\n\n<h4>\ud83c\udfaf Why Choose Sky Login Redirect?<\/h4>\n\n<p><strong>Perfect for:<\/strong>\n\u2713 Membership sites that need role-based redirects\n\u2713 WooCommerce stores wanting seamless checkout flows\n\u2713 Multi-author blogs with custom dashboards\n\u2713 Client sites requiring branded login pages\n\u2713 Any site wanting better user experience<\/p>\n\n<h4>\ud83d\ude80 Core Features (FREE)<\/h4>\n\n<p><strong>Smart Redirects<\/strong>\n* Redirect users to <strong>previous page<\/strong> they were viewing\n* Set redirects by <strong>user role<\/strong> (Admin, Editor, Subscriber, etc.)\n* Target <strong>specific users<\/strong> with custom redirects\n* Global redirects for all users\n* Separate login and logout redirect rules\n* <strong>Automatic loop detection<\/strong> prevents infinite redirects<\/p>\n\n<p><strong>Login Page Customizer<\/strong>\n* Custom logo upload\n* Background color or image\n* Form styling (colors, borders, padding)\n* Button customization (colors, size, alignment)\n* Live preview of changes\n* No coding required!<\/p>\n\n<p><strong>WooCommerce Integration<\/strong> (Enhanced in v4.1)\n* Preserves cart\/checkout redirects automatically\n* Smart My Account endpoint handling\n* Prevents redirect loops on customer-logout\n* Shop page fallback on logout<\/p>\n\n<p><strong>Performance &amp; Security<\/strong>\n* Built with modern PHP 8.1+ architecture\n* AJAX-powered admin interface\n* Rate limiting on AJAX endpoints\n* Dual-layer caching for speed\n* 40-60% faster than previous versions<\/p>\n\n<h4>\u26a1 Technical Excellence<\/h4>\n\n<ul>\n<li><strong>Modern codebase:<\/strong> Enums, readonly classes, strict types<\/li>\n<li><strong>Enterprise-grade security:<\/strong> Rate limiting, output escaping, nonce verification<\/li>\n<li><strong>Optimized performance:<\/strong> Object caching, transients, minimal database queries<\/li>\n<li><strong>Developer-friendly:<\/strong> Debug logging, extensible architecture, clean code<\/li>\n<\/ul>\n\n<p><strong>Important:<\/strong> Version 4.1.0 requires PHP 8.1 or higher for modern features and enhanced security.<\/p>\n\n<h4>\ud83d\udc8e Pro Features<\/h4>\n\n<p>Upgrade to <a href=\"https:\/\/utopique.net\/products\/sky-login-redirect-premium\/\" title=\"Sky Login Redirect Pro\">Sky Login Redirect Pro<\/a> for advanced functionality:<\/p>\n\n<p><strong>Advanced Redirects<\/strong>\n* More granular redirect rules\n* Easy Digital Downloads integration\n* Advanced WooCommerce customization\n* Conditional logic for redirects<\/p>\n\n<p><strong>Content Restriction<\/strong>\n* Restrict pages\/posts to logged-in users\n* Role-based content access control\n* Redirect non-authorized users<\/p>\n\n<p><strong>Shortcodes &amp; Widgets<\/strong>\n* <code>[slr_login_form]<\/code> - Embed login form anywhere\n* <code>[slr_login_link]<\/code> - Custom login\/logout links\n* Automatic menu integration\n* Modal login form with customizer<\/p>\n\n<p><strong>Enhanced Customization<\/strong>\n* WooCommerce My Account page styling\n* Custom CSS editor\n* Additional UX\/UI options\n* Advanced form styling<\/p>\n\n<p><strong>Priority Support<\/strong>\n* Direct developer access\n* Faster response times\n* Custom feature requests considered<\/p>\n\n<p><a href=\"https:\/\/utopique.net\/products\/sky-login-redirect-premium\/\">View all Pro features \u2192<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Visit the 'Login Redirect' settings page to set your login and logout redirects or edit your login page's styles.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20set%20up%20redirects%3F\"><h3>How do I set up redirects?<\/h3><\/dt>\n<dd><ol>\n<li>Go to <strong>Settings \u2192 Login Redirect<\/strong> in your WordPress admin<\/li>\n<li>Choose your redirect type (Previous Page, Custom Page, or WordPress Default)<\/li>\n<li>Select which users\/roles the redirect applies to<\/li>\n<li>Save changes and test!<\/li>\n<\/ol><\/dd>\n<dt id=\"can%20i%20redirect%20different%20user%20roles%20to%20different%20pages%3F\"><h3>Can I redirect different user roles to different pages?<\/h3><\/dt>\n<dd><p>Yes! You can set unique redirects for each user role (Administrator, Editor, Author, Subscriber, etc.) and even target specific users by username.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20woocommerce%3F\"><h3>Does it work with WooCommerce?<\/h3><\/dt>\n<dd><p>Absolutely! Version 4.1.0 includes enhanced WooCommerce integration:\n* Preserves cart\/checkout redirects automatically\n* Smart My Account endpoint handling\n* Customizable logout redirects\n* No conflicts with WooCommerce login flow<\/p><\/dd>\n<dt id=\"will%20it%20work%20with%20my%20membership%20plugin%3F\"><h3>Will it work with my membership plugin?<\/h3><\/dt>\n<dd><p>Yes! Sky Login Redirect is compatible with most membership plugins including MemberPress, Restrict Content Pro, Paid Memberships Pro, and others.<\/p><\/dd>\n<dt id=\"redirections%20don%27t%20seem%20to%20trigger%20-%20what%20should%20i%20do%3F\"><h3>Redirections don't seem to trigger - what should I do?<\/h3><\/dt>\n<dd><ol>\n<li>Verify redirect rules are saved in <strong>Settings \u2192 Login Redirect<\/strong><\/li>\n<li>Clear your browser cache and cookies<\/li>\n<li>Re-save permalinks: <strong>Settings \u2192 Permalinks \u2192 Save Changes<\/strong><\/li>\n<li>If using WooCommerce, re-save WooCommerce settings<\/li>\n<li>Check for plugin conflicts by temporarily disabling other plugins<\/li>\n<\/ol><\/dd>\n<dt id=\"can%20i%20redirect%20users%20back%20to%20the%20page%20they%20were%20viewing%3F\"><h3>Can I redirect users back to the page they were viewing?<\/h3><\/dt>\n<dd><p>Yes! Select \"Previous Page\" as your redirect option. The plugin intelligently tracks the last page visited and redirects users there after login.<\/p><\/dd>\n<dt id=\"does%20it%20support%20custom%20login%20pages%3F\"><h3>Does it support custom login pages?<\/h3><\/dt>\n<dd><p>Yes! The plugin includes a visual login page customizer where you can:\n* Upload custom logos\n* Change colors and backgrounds\n* Style forms and buttons\n* Match your brand perfectly<\/p><\/dd>\n<dt id=\"what%27s%20new%20in%20version%204.1.0%3F\"><h3>What's new in version 4.1.0?<\/h3><\/dt>\n<dd><p>Version 4.1.0 brings major improvements:\n* Modern PHP 8.1+ architecture for better performance\n* Enhanced WooCommerce integration\n* AJAX rate limiting for security\n* Improved redirect loop detection\n* Cleaner, more maintainable codebase<\/p><\/dd>\n<dt id=\"is%20it%20translation%20ready%3F\"><h3>Is it translation ready?<\/h3><\/dt>\n<dd><p>Yes! The plugin is fully translation-ready and includes a .pot file for translators.<\/p><\/dd>\n<dt id=\"where%20can%20i%20get%20support%3F\"><h3>Where can I get support?<\/h3><\/dt>\n<dd><p>Free support is available through the <a href=\"https:\/\/wordpress.org\/support\/plugin\/sky-login-redirect\/\">WordPress.org support forum<\/a>. Pro users get priority email support.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>4.1.9 - 2026-03-30<\/h4>\n\n<ul>\n<li>Performance - Carbon Fields no longer loads on frontend, saving ~5-15 ms PHP time and ~1-2 MB memory per public page load<\/li>\n<li>Performance - Freemius SDK no longer initialises on frontend \u2014 all plan checks are strictly admin-only<\/li>\n<li>Performance - Premium widget rewritten as plain WP_Widget, removing CF boot requirement on every widgets_init call<\/li>\n<li>Performance - Removed redundant get_cached_options() hook on save \u2014 cache repopulates lazily<\/li>\n<li>Bug Fix - Cookies were not cleared on logout due to sanitize_key() stripping uppercase from cookie names<\/li>\n<li>Bug Fix - CSS value 0 was silently ignored in the login customizer (border-radius: 0, border-width: 0, etc.)<\/li>\n<li>Security - Open redirect hardening: custom redirect URLs now validated with wp_validate_redirect() in addition to esc_url_raw()<\/li>\n<li>Resilience - Server-side redirect_to hidden field injection for compatibility with security plugins (WPS Limit Login, etc.)<\/li>\n<li>Resilience - login_redirect and logout_redirect filter priorities raised to PHP_INT_MAX<\/li>\n<li>Resilience - Cookie-based fallback in redirect logic when redirect_to is stripped by security plugins<\/li>\n<li>Internal - Login customizer hook moved from carbon_fields_register_fields to after_setup_theme<\/li>\n<li>Internal - carbonade() replaces carbon_get_theme_option() in RedirectManager for frontend compatibility<\/li>\n<li>Internal - Freemius helper renamed to snake_case, uninstall hook and premium loader gated to is_admin()<\/li>\n<\/ul>\n\n<h4>4.1.8 - 2026-03-24<\/h4>\n\n<ul>\n<li>Security - add wp_strip_all_tags() defense-in-depth to all inline CSS outputs (login customizer, WooCommerce customizer, modal customizer, custom CSS blocks, code CSS)<\/li>\n<li>Security - remove Select2 library and custom AJAX search system entirely \u2014 Carbon Fields handles selects natively<\/li>\n<li>Performance - remove update_option() from read path in get_cached_options() (VIP compatibility)<\/li>\n<li>Performance - carbonade() now reads from object cache \/ transient two-tier cache instead of direct get_option() DB query<\/li>\n<li>Performance - modal login form no longer renders HTML or generates nonces for logged-in users<\/li>\n<li>Performance - modal AJAX login script only enqueues for logged-out users via reliable template_redirect check<\/li>\n<li>Performance - flush all cache layers (object cache + transient) on Carbon Fields settings save with correct priority ordering<\/li>\n<li>Compatibility - patch Carbon Fields Pimple container for PHP 8.5: replace deprecated SplObjectStorage::attach()\/detach() with offsetSet()\/offsetUnset()<\/li>\n<li>Refactor - split modal ModalLoginManager::initAjaxLogin() into registerAjaxHandler() (init) and enqueueLoginScripts() (template_redirect) for proper separation of concerns<\/li>\n<\/ul>\n\n<p>Older versions changes can be found in <a href=\"https:\/\/utopique.net\/products\/sky-login-redirect-premium\/#changelog\" title=\"Sky Login Redirect changelog\">the changelog<\/a><\/p>","raw_excerpt":"Control where users land after login\/logout. Redirect by role, user, or previous page. Includes a powerful login customizer and WooCommerce support.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18287"}],"author":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/skyminds"}],"wp:attachment":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18287"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18287"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18287"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18287"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18287"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}