- This topic has 1 reply, 2 voices, and was last updated 3 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Signify Pro › After Login Redirect
Hello,
After a successful login, I would like to redirect to a welcome page. I have tried several plugins and I have tried adding code via the Snippet plugin to accomplish this. Everything just ignores it and remains on the Login page. I have the user management plugin WP User Manager and I am thinking it is already overriding the redirect filter and that is why I can’t get it to work. I want all non-admin users to go to welcome_page and admins to function as they do now. The code snipped I attempted is:
/**
* Redirect non-admins to the welcome page after logging into the site.
*
*/
$welcome_page = ‘https://www.monnie.family/welcome_page’;
function monnie_login_redirect($welcome_page, $request, $user) {
return(is_array($user->roles) && in_array(‘administrator’, $user->roles))
? admin_url() : site_url();
}
add_filter(‘login_redirect’, ‘monnie_login_redirect’, 10, 3);
Thanks for any assistance or code solution you can provide.
Kevin
Hello
I have just signed up on your site for testing purposes
can you please send us a dashboard login? and the URL of the welcome page
Regards,
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |