bb_get_current_theme_data

Themes.

Description

bb_get_current_theme_data( (string) $property = 'all' ); 

Parameters (1)

0. $property — Optional. (string) => 'all'
The property.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php  
  1. function bb_get_current_theme_data( $property = 'all' ) { 
  2. if (!$property) { 
  3. $property = 'all'; 
  4. $stylesheet = $directory . 'style.css'; 
  5. if (file_exists($stylesheet)) { 
  6. $data = bb_get_theme_data($stylesheet); 
  7. if ($property == 'all') { 
  8. return $data; 
  9. } elseif (isset($data[$property])) { 
  10. return $data[$property]; 
  11. } else { 
  12. return false;