Support » Plugin: Peter's Login Redirect » [Plugin: Peter's Login Redirect] WP Multisite, how to redirect user to their primary blog?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Peter

    (@pkthree)

    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!

    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!

    Plugin Author Peter

    (@pkthree)

    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.

    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 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Peter's Login Redirect] WP Multisite, how to redirect user to their primary blog?’ is closed to new replies.