Gform entry page size

(Parameters)
(Examples)
 
Line 28: Line 28:
<?php
<?php
add_filter("gform_entry_page_size", "my_entry_page_size");
add_filter("gform_entry_page_size", "my_entry_page_size");
-
function custom_merge_tags() {
+
function my_entry_page_size() {
     return 40;
     return 40;
}
}

Latest revision as of 20:02, 2 April 2012

Available in GF v1.6.4

Description

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

Usage

<?php
add_filter("gform_entry_page_size", "my_entry_page_size", 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.

<?php
add_filter("gform_entry_page_size", "my_entry_page_size");
function my_entry_page_size() {
    return 40;
}
?>

Source Code

This filter is located in entry_list.php

Search the Documentation