• Resolved RukiaR7

    (@rukiar7)


    I am using wordpress multisite. I would like when a link is clicked, to go to the 2nd site splash page and if a user is logged in to the main site they see Enter on the 2nd site splash page, if they are not logged into the main site they see Login information on the splash page. Then after logging in be sent to the 2nd site main page the same logged in users get after clicking enter. Seems easy but Im not sure how to accomplish this. If it makes any difference I am using example.mainsite.com on my multisite. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You could use is_user_logged_in() for that, which should just check if a user is logged in, though you would have to wrap that in switch_to_blog() to force check on site1, since by default it’d check THAT site.

    Keep in mind, being logged in for site1 does not mean you’re logged in for site2, so why not just have it check if they’re logged in for that site?

    Thread Starter RukiaR7

    (@rukiar7)

    Is there a plugin that accomplishes this or something similar so I don’t have to spend a month figuring out the php?

    Sorry didn’t mean to make two similar topics.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Deleted your other topic.

    If you want everyone to be a member of two sites, but only logged in users can access site #2, then use a plugin like Multisite Member Management to auto-add all users to site #2, and then a plugin like Restricted Site Access to limit that site to logged in users only.

    Thread Starter RukiaR7

    (@rukiar7)

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multisite logged in redirect’ is closed to new replies.