Peter's Login Redirect
WP Multisite, how to redirect user to their primary blog? (5 posts)

  1. Dan & Jennifer
    Posted 4 years ago #

    Hi Peter!

    On a WP Multisite, would it be possible for users to be able to login to the main site (for a consistent login URL) - but to automatically redirect them to their primary blog dashboard when they login?

    How can that be done with this plugin?

    Or is there an even simpler way to do that? :-)



  2. Peter
    Plugin Author

    Posted 4 years ago #

    I haven't looked at this scenario yet, so I can't provide any useful advice at the moment. However, I'd certainly be interested in hearing people's experiences with this!

  3. pixelyzed
    Posted 3 years ago #


    I'm trying out your plugin and, another more common scenario that doesn't work for now is a user logging on to their own site on the network (somesite.com/user-site/wp-login.php) and I want to redirect them to the admin of that same site (somesite.com/user-site/wp-admin/).

    That's exactly what site_url() does but it's not part of the variables you make available in the plugin. I think it would be useful to add it. For now I hacked the plugin file with the code for these variables to make it work.


  4. Peter
    Plugin Author

    Posted 3 years ago #

    Thanks for bringing that up. In the meantime, you could extend it outside of the plugin as per the documentation here: http://wordpress.org/extend/plugins/peters-login-redirect/other_notes/

    That way you won't have to re-apply your changes if they're not implemented or not quite the same in the next version.

  5. pixelyzed
    Posted 3 years ago #

    Hi Peter,

    Thank you so much! That works flawlessly without hacking the plugin's code. Don't know why I haven't seen it before... Oh well ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Peter's Login Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.