bbp_show_on_root

Return the search slug.

Description

(string) bbp_show_on_root( (string) $default = 'forums' ); 

Returns (string)

Parameters (1)

0. $default — Optional. (string) => 'forums'
The default.

Usage

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

Defined (1)

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

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