bbp_get_forums_per_page( int $default = 15 )
Return the forums per page setting
Description
Parameters
- $default
-
(Optional) Default replies per page (15)
Default value: 15
Return
(int)
Source
File: bp-forums/forums/functions.php
2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 | function bbp_get_forums_per_page( $default = 15 ) { // Get database option and cast as integer $retval = get_option( '_bbp_forums_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_forums_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.