gform_entry_page_size

gform_entry_page_size

DescriptionUsageParametersExamplesSource Code

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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註