<?php
function fwp_override_facet_value( $params ) {
foreach ( $params['facets'] as $key => $facet ) {
if ( 'date' == $facet['facet_name'] ) {
$params['facets'][ $key ]['selected_values'] = array( date( 'Y-m-d' ) );
break;
}
}
return $params;
}
add_filter( 'facetwp_render_params', 'fwp_override_facet_value' );