bp_core_enable_root_profiles

Are root profiles enabled and allowed?.

Description

bp_core_enable_root_profiles(); 

Usage

  1. if ( !function_exists( 'bp_core_enable_root_profiles' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-catchuri.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_enable_root_profiles(); 
  7.  

Defined (1)

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

/bp-core/bp-core-catchuri.php  
  1. function bp_core_enable_root_profiles() { 
  2.  
  3. $retval = false; 
  4.  
  5. if ( defined( 'BP_ENABLE_ROOT_PROFILES' ) && ( true == BP_ENABLE_ROOT_PROFILES ) ) 
  6. $retval = true; 
  7.  
  8. /** 
  9. * Filters whether or not root profiles are enabled and allowed. 
  10. * @since 1.6.0 
  11. * @param bool $retval Whether or not root profiles are available. 
  12. */