bbp_get_theme_compat_dir

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

Description

(string) bbp_get_theme_compat_dir(); 

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_dir' ) ) { 
  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_dir(); 
  7.  

Defined (1)

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

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