We currently have events scheduled out through next year in our calendar, but use the RSS feed to import into MailChimp.
I’m hoping to limit the events shown in the feed to just the next 9 days, but it looks like there is already a query rewrite happening later than wipes out my changes. Here’s my code – could you point me to where Events Calendar PRO is rewriting the query and how that filter might be disabled?
$nextWed = strtotime('+8 days');
$nextWedStr = date('m/d/Y H:i:s',$nextWed);
$query->set('posts_per_rss',100);
$query->set('meta_key','_EventStartDate');
$query->set('meta_value',$nextWedStr);
$query->set('meta_compare','<');
$query->set('meta_type','DATETIME');