bbp_filter_is_single_user

Filter the bbPress is_single_user function with BuddyPress eqivalent.

Description

bbp_filter_is_single_user( (bool) $is = false ); 

Parameters (1)

0. $is — Optional. (bool) => false
Default false

Usage

  1. if ( !function_exists( 'bbp_filter_is_single_user' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/extend/buddypress/functions.php'; 
  3.  
  4. // Optional. Default false 
  5. $is = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_filter_is_single_user($is); 
  9.  

Defined (1)

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

/includes/extend/buddypress/functions.php  
  1. function bbp_filter_is_single_user( $is = false ) { 
  2. if ( !empty( $is ) ) 
  3. return $is; 
  4.  
  5. return bp_is_user();