<?php
/**
* The Events Calendar PRO: Make tribe_is_week() return TRUE even for
* tribe_events shortcode.
*
* @link https://gist.github.com/cliffordp/7b48b2e6a0562709cf9d069f38cfdcee
* @link https://gist.github.com/GeoffEW/dff981933c950aebc3045b827eddc101 or something like it could be used alongside this snippet.
* @link https://central.tri.be/issues/91891
*/
add_action ('tribe_events_pro_tribe_events_shortcode_prepare_week', function() {
add_filter( 'tribe_is_week', function() {
return true;
});
});