Hi Sergey
Its just the same as the $args object you pass to a new WP_Query – so this link should provide you with the necessary options:
https://codex.wordpress.org/Class_Reference/WP_Query
To take their category example and apply it to the S&F filter:
https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
=
<?php
function sf_filter_query_args( $query_args, $sfid ) {
//if search form ID = 225, the do something with this query
if($sfid==225)
{
//modify $query_args here before returning it
//only show results within categories with these IDs
$query_args['cat'] = '2,6,17,38';
}
return $query_args;
}
add_filter( 'sf_edit_query_args', 'sf_filter_query_args', 10, 2 );
?>
Thanks