WordPress.org

Latviešu valodā

  • Tēmas
  • Spraudņi
  • Jaunumi
  • Par
  • Iegūstiet WordPress
Iegūstiet WordPress
WordPress.org

Plugin Directory

Smart Role Login Redirects

  • Iesniegt spraudni
  • Mani favorīti
  • Pieslēgties
  • Iesniegt spraudni
  • Mani favorīti
  • Pieslēgties

Smart Role Login Redirects

Autors aryantech
Lejupielādēt
  • Sīkāka informācija
  • Atsauksmes
  • Uzstādīšana
  • Attīstība
Atbalsts

Apraksts

Role-based login redirects for WordPress.

Key Features

🎯 Role-Specific Redirects – Set unique redirect URLs for each WordPress role
🚀 Lightweight & Fast – Minimal impact on site performance
🎨 Simple Admin Interface – Easy-to-use settings page in WordPress admin
🔒 Secure – Validates all redirect URLs for security
🌐 Works with Default Roles – Administrator, Editor, Author, Contributor, Subscriber
🔧 Custom Role Compatible – Works with any custom roles added by other plugins
📱 Fully Responsive – Admin interface works on all devices
🔄 Smart Redirect Logic – Respects existing redirect_to parameters
⚡ No Dependencies – Works out of the box with any WordPress installation

Use Cases

  • Membership Sites – Send members to their dashboard, non-members to upgrade page
  • Multi-Author Blogs – Direct authors to post editor, editors to moderation queue
  • Client Portals – Route clients to their project pages
  • Educational Sites – Send students to course materials, instructors to grade book
  • eCommerce – Direct customers to account page, shop managers to orders

How It Works

  1. Install and activate the plugin
  2. Go to Settings → Login Redirects
  3. Enter redirect URLs for each user role
  4. Save your settings
  5. Users are automatically redirected based on their role when they log in

Examples of Redirect URLs

  • Homepage: https://yoursite.com/
  • Custom Dashboard: https://yoursite.com/dashboard/
  • Admin Area: https://yoursite.com/wp-admin/
  • Specific Page: https://yoursite.com/members-only/
  • Profile Page: https://yoursite.com/wp-admin/profile.php

Pro Tips

  • Leave a role’s redirect URL empty to use WordPress default behavior
  • The plugin respects WooCommerce checkout redirects
  • Works seamlessly with other login plugins
  • Primary role is used for users with multiple roles

Additional Information

= Support =
For support, feature requests, or bug reports, please visit our support forum or GitHub repository.

Contributing

We welcome contributions! Please feel free to submit pull requests, report bugs, or suggest features on our GitHub repository.

Privacy

This plugin does not collect any personal data. It only stores redirect URLs in your WordPress database.

Credits

Developed with ❤️ for the WordPress community.

Uzstādīšana

Automatic Installation

  1. Log in to your WordPress dashboard
  2. Navigate to Plugins → Add New
  3. Search for “Smart Role Login Redirects”
  4. Click “Install Now” and then “Activate”
  5. Go to Settings → Login Redirects to configure

Manual Installation

  1. Download the plugin ZIP file
  2. Log in to your WordPress dashboard
  3. Navigate to Plugins → Add New
  4. Click “Upload Plugin” and choose the ZIP file
  5. Click “Install Now” and then “Activate”
  6. Go to Settings → Login Redirects to configure

FTP Installation

  1. Download and extract the plugin ZIP file
  2. Upload the smart-role-login-redirects folder to /wp-content/plugins/
  3. Log in to your WordPress dashboard
  4. Navigate to Plugins and activate “Smart Role Login Redirects”
  5. Go to Settings → Login Redirects to configure

BUJ

Does this plugin work with custom roles?

Yes! The plugin automatically detects all roles registered in WordPress, including custom roles added by other plugins or themes.

What happens if a user has multiple roles?

The plugin uses the user’s primary role (first role in their role array) for determining the redirect URL.

Can I use relative URLs?

Yes, you can use both absolute URLs (https://yoursite.com/page/) and relative URLs (/page/).

Will this override WooCommerce redirects?

No, the plugin respects existing redirect_to parameters. WooCommerce checkout redirects and similar functionality will continue to work normally.

What happens if I don’t set a redirect for a role?

If no redirect URL is set for a role, users with that role will be redirected to the WordPress default location (usually the admin dashboard or profile page).

Is the plugin multisite compatible?

Yes, the plugin works on multisite installations. Each site in the network can have its own redirect settings.

Can I redirect users to external websites?

For security reasons, the plugin only allows redirects to your own domain or relative URLs.

How can I reset the settings?

You can clear individual role redirects by removing the URL and saving. To completely reset, deactivate and reactivate the plugin.

Does this work with custom login pages?

Yes, as long as the custom login page uses WordPress’s standard authentication hooks (wp_login), the redirects will work.

Will this slow down my site?

No, the plugin is very lightweight and only runs during the login process. It has no impact on regular page loads.

Atsauksmes

Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“Smart Role Login Redirects” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki
  • aryantech

Tulkot “Smart Role Login Redirects&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0.0

  • Initial release
  • Core redirect functionality
  • Admin settings page
  • Support for all WordPress default roles
  • URL validation for security
  • Settings link on plugins page
  • Activation/deactivation hooks
  • Uninstall cleanup

Meta

  • Versija 1.0.0
  • Pēdējo reizi atjaunots: pirms 1 mēneša
  • Aktīvās instalācijas: Mazāk par 10
  • WordPress versija 5.0 vai jaunāka
  • Pārbaudīts līdz: 6.8.3
  • PHP versija 7.4 vai jaunāka
  • Valoda
    English (US)
  • Birkas:
    loginmembershipredirectuser roleswoocommerce
  • Papildu skats

Vērtējumi

Vēl nav iesniegta neviena atsauksme.

Pievienot manu atsauksmi

Skatīt visas atsauksmes

Līdzdalībnieki

  • aryantech

Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

Skatīt atbalsta forumu

  • Par
  • Jaunumi
  • Uzturētājs
  • Privātums
  • Vitrīna
  • Tēmas
  • Spraudņi
  • Modeļi
  • Uzziniet
  • Atbalsts
  • Izstrādātāji
  • WordPress.TV
  • Iesaistieties
  • Pasākumi
  • Ziedot
  • Pieci nākotnei
  • WordPress.com
  • Matt
  • bbPress
  • BuddyPress
WordPress.org
WordPress.org

Latviešu valodā

  • Apmeklējiet mūsu X (agrāk Twitter) kontu
  • Apmeklējiet mūsu Bluesky kontu
  • Apmeklējiet mūsu Mastodon kontu
  • Apmeklējiet mūsu Threads kontu
  • Apmeklējiet mūsu Facebook lapu
  • Apmeklējiet mūsu Instagram kontu
  • Apmeklējiet mūsu LinkedIn kontu
  • Apmeklējiet mūsu TikTok kontu
  • Apmeklējiet mūsu YouTube kanālu
  • Apmeklējiet mūsu Tumblr kontu
Kods ir dzeja.