Skip to:
Content
Pages
Categories
Search
Top
Bottom

WordPress is_user_logged_in()


  • charulasha
    Participant

    @charulasha

    is_user_logged_in() is not working in Buddypress.

    eg –

    <?php

    $loggedIn = ‘false’;

    if(!is_user_logged_in()){
    $loggedIn = ‘false’;
    }else{
    $loggedIn = ‘true’;
    }

    ?>

    the above code works fine. until a logged out user goes and views a buddypress public profile.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar