bb_get_active_theme_uri

The BuddyPress bb get active theme uri function.

Description

bb_get_active_theme_uri(); 

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_get_active_theme_uri() 
  2. global $bb; 
  3. // Skip theme loading in "safe" mode 
  4. if ( isset( $bb->safemode ) && $bb->safemode === true ) { 
  5. $active_theme_uri = BB_DEFAULT_THEME_URL
  6. } elseif ( !$active_theme = bb_get_option( 'bb_active_theme' ) ) { 
  7. $active_theme_uri = BB_DEFAULT_THEME_URL
  8. } else { 
  9. $active_theme_uri = bb_get_theme_uri( $active_theme ); 
  10. return apply_filters( 'bb_get_active_theme_uri', $active_theme_uri );