bp_get_widget_max_count_limit( string $widget_class = '' )

Returns the upper limit on the “max” item count, for widgets that support it.

Description

Parameters

$widget_class

(string) (Optional) Class name of the calling widget.

Default value: ''

Return

(int)

Source

File: bp-core/bp-core-functions.php

function bp_get_widget_max_count_limit( $widget_class = '' ) {
	/**
	 * Filters the upper limit on the "max" item count, for widgets that support it.
	 *
	 * @since BuddyPress 5.0.0
	 *
	 * @param int    $count        Defaults to 50.
	 * @param string $widget_class Class name of the calling widget.
	 */
	return apply_filters( 'bp_get_widget_max_count_limit', 50, $widget_class );
}

Changelog

Changelog
Version Description
BuddyPress 5.0.0 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.