bbp_thread_replies_depth

Maximum reply thread depth.

Description

(int) bbp_thread_replies_depth( (int) $default = 2 ); 

Returns (int)

Thread replies depth

Parameters (1)

0. $default — Optional. (int) => 2
Thread replies depth

Usage

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

Defined (1)

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

/includes/core/options.php  
  1. function bbp_thread_replies_depth( $default = 2 ) { 
  2. return (int) apply_filters( 'bbp_thread_replies_depth', (int) get_option( '_bbp_thread_replies_depth', $default ) );