bbp_set_theme_compat_active

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

Description

bbp_set_theme_compat_active( (bool) $set = true ); 

Parameters (1)

0. $set — Optional. (bool) => true
The set.

Usage

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

Defined (1)

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

/includes/core/theme-compat.php  
  1. function bbp_set_theme_compat_active( $set = true ) { 
  2. bbpress)->theme_compat->active = $set; 
  3.  
  4. return (bool)bbpress)->theme_compat->active;