Start your code hereAs I say the code snippet above only works on the date field but would love to know how I can get it to pick up the field values set in the query string. Thanks
function customize_csv_export_where($where, $args) {
$category=isset( $_GET['ca'] )?sanitize_text_field( $_GET['ca'] ):'';
$status=isset( $_GET['st'] )?absint( $_GET['st'] ):0;
$where['created_at >'] = '2023-10-01 00:00:00';
return $where;
}
add_filter( 'frm_csv_where', 'customize_csv_export_where', 10, 2 );
Thanks for that Rob, I will check it out and attempt to understand it 🙂
Please login or Register to submit your answer