bbp_get_theme_package_id

Get the current theme package ID.

Description

(string) bbp_get_theme_package_id( (string) $default = 'default' ); 

Returns (string)

ID of the subtheme

Parameters (1)

0. $default — Optional. (string) => 'default'
String Optional. Default value default

Usage

  1. if ( !function_exists( 'bbp_get_theme_package_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/options.php'; 
  3.  
  4. // string Optional. Default value 'default' 
  5. $default = 'default'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_theme_package_id($default); 
  9.  

Defined (1)

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

/includes/core/options.php  
  1. function bbp_get_theme_package_id( $default = 'default' ) { 
  2. return apply_filters( 'bbp_get_theme_package_id', get_option( '_bbp_theme_package_id', $default ) );