tribe_get_events returns empty array on multisite switch_to_blog after upgrade
-
I recently updated The Events Calendar from 5.9.2 to 6.4 on my multisite environment. My custom templates, on all blogs that are not the primary events blog where the Events Calendar events are stored, which were using switch_to_blog to go to the main events blog and then pulling events using tribe_get_events, started returning an empty array. However, the exact same tribe_get_events code (without switch_to_blog) continues to work on the main Events Calendar blog. Is there some contextual data that is needed to pull events using tribe_get_events on a different multisite blog in version 6?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘tribe_get_events returns empty array on multisite switch_to_blog after upgrade’ is closed to new replies.