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?