Hey James,
Thanks for reaching out to us on this! I’ll help you getting this done the right way ๐
The correct way of doing this is to add a filter to tribe_events_filter_values and modify the filter values before they get printed. Add the following snippet to your theme’s functions.php file:
/*
* The Events Calendar - Change filter values
*/
add_filter( 'tribe_events_filter_values', 'tribe_change_filter_values', 10, 2 );
function tribe_change_filter_values ( $values , $slug ){
if ( $slug == 'dayofweek' ) {
// remove mondays
unset($values[0]);
// preview values
//echo '
';
//print_r($values);
//echo '
';
}
return $values;
}
In the example above I’m removing Mondays as an example, I guess you’ll get how to customize the code!
Please let me know if this works for you,
Best,
Nico