bbp_get_theme_compat_name

Gets the name of the bbPress compatable theme used, in the event the currently active WordPress theme does not explicitly support bbPress.

Description

(string) bbp_get_theme_compat_name(); 

This can be filtered or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes.

Returns (string)


Usage

  1. if ( !function_exists( 'bbp_get_theme_compat_name' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/theme-compat.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_theme_compat_name(); 
  7.  

Defined (1)

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

/includes/core/theme-compat.php  
  1. function bbp_get_theme_compat_name() { 
  2. return apply_filters( 'bbp_get_theme_compat_name',bbpress)->theme_compat->theme->name );