gravityflow_inbox_paging

Description

The gravityflow_inbox_paging filter allows the paging criteria to be modified before entries are searched for the inbox. Refer to the Gravity Forms API documentation on get_entries for more details on the structure of paging criteria.

Parameters

ParameterTypeDetails
$criteriaArrayThe paging criteria.

Example

Set a specific pagination size

1
2
3
4
5
6
add_filter( 'gravityflow_inbox_paging', 'sh_gravityflow_inbox_paging_criteria', 10, 1 );
function sh_gravityflow_inbox_paging_criteria( $paging_criteria ) {
    //Show 125 results per page.
    $paging_criteria = array('page_size' => 125 );
    return $paging_criteria;
}

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?