gform_page_size_form_list

Description

The gform_page_size_form_list filter can be used to modify the number of forms displayed per page in the Forms list, overriding the Screen Options pagination setting.

Usage

add_filter( 'gform_page_size_form_list', 'your_function_name', 10, 1 );

Parameters

ParameterTypeDescription
$per_pageintThe number of forms to display per page. Defaults to 20.

Example

Set the forms per page to 50.

add_filter( 'gform_page_size_form_list', function( $per_page ) {
    return 50;
} );

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This filter is located in form_list.php

Since

This filter was added in Gravity Forms version 2.9.2