bp_core_is_root_component

Checks to see if a component's URL should be in the root, not under a member page: eg: http://example.com/groups/the-group NOT http://example.com/members/andy/groups/the-group You should be using bp_is_root_component().

Description

bp_core_is_root_component( (string) $component_name ); 

Parameters (1)

0. $component_name (string)
The component name.

Usage

  1. if ( !function_exists( 'bp_core_is_root_component' ) ) { 
  2. require_once '/bp-core/deprecated/1.5.php'; 
  3.  
  4. // The component name. 
  5. $component_name = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_core_is_root_component($component_name); 
  9.  

Defined (1)

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

/bp-core/deprecated/1.5.php  
  1. function bp_core_is_root_component( $component_name ) { 
  2. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_root_component()' ); 
  3. return bp_is_root_component( $component_name );