This filter is applied to the SQL query used to retrieve the data from the database for a given report. The hooked function receives five arguments: the SQL query string, the list of non-aggregated columns to return, the ORDER BY column, the GROUP BY column, and the aggregated columns.

 

$_sql = apply_filters('slimstat_get_results_sql', $_sql, $_select_no_aggregate_values, $_order_by, $_group_by, $_aggregate_values_add);