gform_entry_page_size

Description

Use this filter modify how many entries are shown per page in the Entry List view.

Usage

The base filter which would run for all forms would be used like so:

add_filter( 'gform_entry_page_size', 'your_function_name', 10, 2 );

To target a specific form append the form id to the hook name. (format: gform_entry_page_size_FORMID)

add_filter( 'gform_entry_page_size_10', 'your_function_name', 10, 2 );

Parameters

  • $page_size integer

    The number of entries to show per page.

  • $form_id integer

    The current form ID.

Examples

This example demonstrates how to set the entry page size. Let’s set it to show 40 entries per page.

add_filter( 'gform_entry_page_size', 'my_entry_page_size' );
function my_entry_page_size() {
return 40;
}

Source Code

This filter is located in GFEntryList::leads_page() in entry_list.php.