bbp_get_topics_per_page( int $default = 15 )
Return the topics per page setting
Description
Parameters
- $default
-
(Optional) Default replies per page (15)
Default value: 15
Return
(int)
Source
File: bp-forums/topics/functions.php
3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 | function bbp_get_topics_per_page( $default = 15 ) { // Get database option and cast as integer $retval = get_option( '_bbp_topics_per_page' , $default ); // If return val is empty, set it to default if ( empty ( $retval ) ) $retval = $default ; // Filter and return return (int) apply_filters( 'bbp_get_topics_per_page' , $retval , $default ); } |
Changelog
Version | Description |
---|---|
bbPress (r3540) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.