bp_get_widget_max_count_limit( string $widget_class = '' )

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


Description Description


Parameters Parameters

$widget_class

(Optional) Class name of the calling widget.

Default value: ''


Top ↑

Return Return

(int)


Top ↑

Source 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 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.