bbp_get_replies_per_rss_page

Return the replies per RSS page setting.

Description

(int) bbp_get_replies_per_rss_page( (int) $default = 25 ); 

Returns (int)

Parameters (1)

0. $default — Optional. (int) => 25
Default replies per page (25)

Usage

  1. if ( !function_exists( 'bbp_get_replies_per_rss_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/functions.php'; 
  3.  
  4. // Default replies per page (25) 
  5. $default = 25; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_replies_per_rss_page($default); 
  9.  

Defined (1)

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

/includes/replies/functions.php  
  1. function bbp_get_replies_per_rss_page( $default = 25 ) { 
  2.  
  3. // Get database option and cast as integer 
  4. $retval = get_option( '_bbp_replies_per_rss_page', $default ); 
  5.  
  6. // If return val is empty, set it to default 
  7. if ( empty( $retval ) ) 
  8. $retval = $default; 
  9.  
  10. // Filter and return 
  11. return (int) apply_filters( 'bbp_get_replies_per_rss_page', $retval, $default );