The Group Login Redirect module enables you to redirect group members to a group-specific page on login. Once the module is enabled, it adds the login fields below to LearnDash Group edit pages.
Simply enter the redirect URL in the Redirect members on login field.
In most cases, you should leave the Redirect priority field blank. There are two situations in which you may want to enter a number in the field:
- If users are in multiple groups with login redirects, the redirect with the highest Redirect priority will take precedence.
- If you find that users are not being redirected to the desired URL on login, it’s likely that another plugin on your site is overriding the redirect with a redirect of a higher priority. Enter a number larger than 99 in the Redirect priority field (try 99999 if you absolutely want this redirect to take priority over all others).
The Group Login Redirect module includes two shortcodes that enable you to create a link to the Group Login Redirect URL. These are:
This shortcode outputs the URL exactly as it is typed into the Redirect members on login field (see above). This enables usage in a menu (with a plugin like this), button, or image link.
This shortcode outputs an HTML link using the “text” attribute and the URL in the Redirect members on login field. An example of the code generated would be:
Please note that if you also use the “Log In/Log Out Redirects” module as a fallback, this module has a priority of 999, so it will override the default “Group Login Redirect” priority of 99. And since the priority of “Log In/Log Out Redirects” is non-editable, you will have to _always_ enter at least 1000 in the “Redirect priority” field of “Group Login Redirect”.
This looks like just what we’re looking for. Are there any known conflicts with BuddyBoss theme/platform?
No, this is widely used with BuddyBoss. Note that the redirect is based on LearnDash Group membership though, not BuddyBoss social groups (in some cases they’re in sync, not always, so I wanted to make sure the distinction was clear).
Thanks for checking Ryan. Yes, we’d be using this to redirect based on LD Group, not BuddyBoss group.
Is there any way to redirect based on user role with this?
No, this plugin doesn’t support role-based redirect. For something like that we might suggest the Peter’s Login Redirect plugin.
Thanks for your response!