Hello,
I am writing this because I actually found the answer to this about 2 months ago when I initially setup my site, but for some reason the “fix” no longer works.
I am needing to remove the full 24 hours from the week view. As it displays now, people see the day activities for the week at 12am and have to scroll down quite a bit to see the activities at 9am.
I used this script before in my header file and it worked a couple months ago:
add_filter( ‘tribe_events_week_get_hours’, ‘filter_week_hours’ );
function filter_week_hours( $hours ) {
$hour = 0;
foreach ( $hours as $key => $formatted_hour ) {
if ( $hour < 9 || $hour > 19 ) {
unset( $hours[ $hour ] );
}
$hour ++;
}
return $hours;
}
Now this code no longer works. All days in week view start at 12 am… is there any solution to this that will “stick”? I have hunted this forum for help with this, but I seem to be the only one with this issue… any help is appreciated, thank you