bbp_is_theme_compat_active

Gets true/false if page is currently inside theme compatibility.

Description

bbp_is_theme_compat_active(); 

Usage

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

Defined (1)

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

/includes/core/theme-compat.php  
  1. function bbp_is_theme_compat_active() { 
  2. $bbp =bbpress); 
  3.  
  4. if ( empty( $bbp->theme_compat->active ) ) 
  5. return false; 
  6.  
  7. return $bbp->theme_compat->active;