bbp_get_replies_per_page( int $default = 15 )

Return the replies per page setting

Description

Parameters

$default

(int) (Optional) Default replies per page (15)

Default value: 15

Return

(int)

Source

File: bp-forums/replies/functions.php

function bbp_get_replies_per_page( $default = 15 ) {

	// Get database option and cast as integer
	$retval = get_option( '_bbp_replies_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_replies_per_page', $retval, $default );
}

Changelog

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.