bb_is_user_logged_in

The BuddyPress bb is user logged in function.

Description

bb_is_user_logged_in(); 

Usage

  1. if ( !function_exists( 'bb_is_user_logged_in' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-pluggable.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bb_is_user_logged_in(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-pluggable.php  
  1. function bb_is_user_logged_in() { 
  2. $current_user = bb_get_current_user(); 
  3.  
  4. if ( empty($current_user) ) 
  5. return false; 
  6.  
  7. return true;