Support » Plugin: WP Modal Login » Redirect

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Cole Geissinger


    Hi Josh, thanks for the suggestion. I’ll add this to the next update which I’ll be rolling out soon.

    How does this work?

    Do I add:


    to my fuctions.php to redirect users after logging in?

    Close but no cigar 🙂

    function my_wpml_redirect(){
    return '';

    That is the most compatible way to do it.

    Woop! Thank you Josh 🙂

    thanxxxxx Josh helpful code for all user to redirect the url after login nice job thanxxxxxxx

    Could you explain it a bit more detailed to me. Because when I add your code

    function my_wpml_redirect(){
    return ‘’;

    to functions.php it doesn’t work.

    If someone has a little knowledge of using these codes and explain it a bit, it would be, could be and should be very usefull…

    Plugin Author Cole Geissinger


    Hi M. Dost, can you provide more details? What happens exactly when you login with this code?

    Could you also provide a snippet of the code in your functions.php? The code above should do it, nothing else to it, so there may be something else at play here.

    Was this added to the latest version yet? And is there a way to redirect based on user role? Because that’d be hugely awesome.

    AWesome thank you so much for this. It really helped.

    got it, thanks for that

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Redirect’ is closed to new replies.