gravityflow_discussion_items_display_limit

Allows the number of discussion items to be displayed on the status / inbox pages to be filtered. Default is 10.

This example will change the display limit from 10 to 5 for a specific form / discussion field.

add_filter( 'gravityflow_discussion_items_display_limit', 'limit_discussion_display', 10, 2 );
function limit_discussion_display( $display_limit, $discussion_field ) {

	//Change to control which form / field the limit change is applied to
	if ( $discussion_field['formId'] == '25' && $discussion_field['id'] == '1' ) {
		//gravity_flow()->log_debug( __METHOD__ . '(): JO: ' . print_r( $discussion_field, true ) );
		$display_limit = 5;
	}
	return $display_limit;
}