WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Dan & Jennifer
    Member
    Posted 1 year 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? :-)

    Thanks!
    Dan

    http://wordpress.org/extend/plugins/peters-login-redirect/

  2. Peter
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Hi,

    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.

    Thanks!

  4. Peter
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.