WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] using if( is_user_logged_in() to check login on a DIFFERENT site (6 posts)

  1. jzvestor
    Member
    Posted 2 years ago #

    We have a network set up with 2 sites, the main blog at the root and a secondary BP site in a folder. I want to be able to check and see if a auser is logged into the BP site from the main blog.

    Right now in funtions.php of the main blog, I'm using:

    function my_welcome_msg() {
    
    // show to logged in users
    if( is_user_logged_in() ) { ?>
    blah blah blah
    <?php }
    }
    add_action('genesis_before_header','my_welcome_msg');

    What I'd like is for it to check is the user is logged in not at the main blog, but at the BP install. Is there some way to specify a different url with is_user_logged_in() to check?

  2. Ask in the studiopress forums please. There's multiple ways to handle this specific to genesis & genesisconnect.

    Tho, if they are logged in at the main site, they are logged in across the network.

  3. jzvestor
    Member
    Posted 2 years ago #

    k tx!

  4. jzvestor
    Member
    Posted 2 years ago #

    tho we're not using genesis connect, we have genesis on the main site, and the sub site is using BP and buddyboss. No genesis

  5. And you specificed over there you're using two separate installs. This is not multisite nor will it behave as such.

    It's separate.

    You can't do it.

    If you could, then I'd be able to state somewhere I'm logged in to *your( site and open up a huge hole.

  6. jzvestor
    Member
    Posted 2 years ago #

    yeah, I had a feeling that might be the answer. tx

Topic Closed

This topic has been closed to new replies.

About this Topic