Description
The gravityflow_inbox_sorting filter allows the sorting criteria to be modified before searching for entries in the inbox. Refer to the Gravity Forms API documentation on searching entries for more details on the structure of sort criteria.
Parameters
Parameter | Type | Details |
---|---|---|
$criteria | Array | The sorting criteria. |
Examples
Reverse the sort order of the inbox entries
add_filter( 'gravityflow_inbox_sorting', 'sh_gravityflow_inbox_sorting', 10 );
function sh_gravityflow_inbox_sorting( $sorting ) {
return array( 'direction' => 'ASC' );
}
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?