gravityflow_inbox_search_criteria

Allows the search 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 search_criteria.

Example Usage:

add_filter( 'gravityflow_inbox_search_criteria', 'sh_gravityflow_inbox_search_criteria', 10, 1 );
function sh_gravityflow_inbox_search_criteria( $search_criteria ) {
    $start_date = date( 'Y-m-d', strtotime('-5 days') );
    $end_date = date( 'Y-m-d', time() );
    $search_criteria['status'] = 'active';
    $search_criteria['start_date'] = $start_date;
    $search_criteria['end_date'] = $end_date;
    
    return $search_criteria;
}

//This would restrict the inbox to show only entries from the last 5 days which are active

Placement

This code should be placed in the functions.php file of your active theme.