Disable The Events Calendar's REST API functionality.
<?php /** * Disable The Events Calendar's REST API functionality. * * Note that trying to import events from a site with the REST API disabled... * into another site running The Events Calendar... via Event Aggregator... * will cause this import setup/scheme to no longer function, since * Event Aggregator uses the REST API to pull events from one TEC site * into another TEC site. * * Requires The Events Calendar version 4.6.10 or greater. * * @link https://gist.github.com/cliffordp/37f45031be10f30e27dbba63b46bcec6 * @link https://theeventscalendar.com/maintenance-release-for-the-week-of-22-january-2018/ */ add_filter( 'tribe_events_rest_api_enabled', '__return_false' );