gravityflow_inbox_sorting
The gravityflow_inbox_sorting filter allows the sorting criteria to be modified before searching for entries in the inbox.
The filter should return an array containing the following optional elements: "direction", "key" (the field ID e.g. 1) and "is_numeric" (true/false).
Further details in the GFAPI documentation.
Example usage:
add_filter( 'gravityflow_inbox_sorting', 'sh_gravityflow_inbox_sorting', 10 ); /** * Reverse the order of the entries in the inbox. * * @param array $sorting * * @return array */ function sh_gravityflow_inbox_sorting( $sorting ) { return array( 'direction' => 'ASC' ); }
Placement
This code should be placed in the functions.php file of your active theme.